Merge pull request #268174 from yu-re-ka/bngblaster
This commit is contained in:
commit
dccb94abdc
53
pkgs/by-name/bn/bngblaster/package.nix
Normal file
53
pkgs/by-name/bn/bngblaster/package.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, cmocka
|
||||
, libdict
|
||||
, ncurses
|
||||
, jansson
|
||||
, openssl
|
||||
, libpcap
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "bngblaster";
|
||||
version = "0.8.29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rtbrick";
|
||||
repo = "bngblaster";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-yuWSGN7wLRksNjgr7c5GiC9JTN4T1PJV4Js1ZOGBKqA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libdict
|
||||
ncurses
|
||||
jansson
|
||||
openssl
|
||||
cmocka
|
||||
] ++ lib.optionals finalAttrs.doCheck [
|
||||
libpcap
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBNGBLASTER_TESTS=${if finalAttrs.doCheck then "ON" else "OFF"}"
|
||||
"-DBNGBLASTER_VERSION=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/rtbrick/bngblaster/";
|
||||
changelog = "https://github.com/rtbrick/bngblaster/releases/tag/${finalAttrs.version}";
|
||||
description = "network tester for access and routing protocols";
|
||||
license = licenses.bsd3;
|
||||
maintainers = teams.wdz.members;
|
||||
badPlatforms = platforms.darwin;
|
||||
};
|
||||
})
|
40
pkgs/by-name/li/libdict/package.nix
Normal file
40
pkgs/by-name/li/libdict/package.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, cunit
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libdict";
|
||||
version = "1.0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rtbrick";
|
||||
repo = "libdict";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-JM67lpXGacA0w8luQLc/83mAdHgtXnYlw543gUqUpRM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
buildInputs = [
|
||||
cunit
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DLIBDICT_TESTS=${if finalAttrs.doCheck then "ON" else "OFF"}"
|
||||
"-DLIBDICT_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/rtbrick/libdict/";
|
||||
changelog = "https://github.com/rtbrick/libdict/releases/tag/${version}";
|
||||
description = "C library of key-value data structures";
|
||||
license = licenses.bsd2;
|
||||
maintainers = teams.wdz.members;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user