nixpkgs/pkgs/by-name/bn/bngblaster/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-22 08:30:16 +00:00
{
lib,
stdenv,
cmake,
cmocka,
fetchFromGitHub,
jansson,
libdict,
libpcap,
ncurses,
openssl,
2023-11-17 15:36:55 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bngblaster";
2024-08-07 16:24:34 +00:00
version = "0.9.5";
2023-11-17 15:36:55 +00:00
src = fetchFromGitHub {
owner = "rtbrick";
repo = "bngblaster";
rev = finalAttrs.version;
2024-08-07 16:24:34 +00:00
hash = "sha256-fJDoKGYal/wDpe2FALWDm0cVngP2ybWlrDIJLSEBIGY=";
2023-11-17 15:36:55 +00:00
};
2024-04-22 08:30:16 +00:00
nativeBuildInputs = [ cmake ];
2023-11-17 15:36:55 +00:00
buildInputs = [
libdict
ncurses
jansson
openssl
cmocka
] ++ lib.optionals finalAttrs.finalPackage.doCheck [ libpcap ];
2023-11-17 15:36:55 +00:00
cmakeFlags = [
"-DBNGBLASTER_TESTS=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}"
2023-11-17 15:36:55 +00:00
"-DBNGBLASTER_VERSION=${finalAttrs.version}"
];
doCheck = true;
meta = with lib; {
description = "Network tester for access and routing protocols";
2023-11-17 15:36:55 +00:00
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;
};
})