mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
cmocka,
|
|
fetchFromGitHub,
|
|
jansson,
|
|
libdict,
|
|
libpcap,
|
|
ncurses,
|
|
openssl,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bngblaster";
|
|
version = "0.9.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rtbrick";
|
|
repo = "bngblaster";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-h4m/tPiLFRi3Dwh6QPmnCCZR4XNOZaz9xoDhOXAcIEQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
libdict
|
|
ncurses
|
|
jansson
|
|
openssl
|
|
cmocka
|
|
] ++ lib.optionals finalAttrs.finalPackage.doCheck [ libpcap ];
|
|
|
|
cmakeFlags = [
|
|
"-DBNGBLASTER_TESTS=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}"
|
|
"-DBNGBLASTER_VERSION=${finalAttrs.version}"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Network tester for access and routing protocols";
|
|
homepage = "https://github.com/rtbrick/bngblaster/";
|
|
changelog = "https://github.com/rtbrick/bngblaster/releases/tag/${finalAttrs.version}";
|
|
license = licenses.bsd3;
|
|
maintainers = teams.wdz.members;
|
|
badPlatforms = platforms.darwin;
|
|
};
|
|
})
|