mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, cmocka
|
|
, libdict
|
|
, ncurses
|
|
, jansson
|
|
, openssl
|
|
, libpcap
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bngblaster";
|
|
version = "0.8.35";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rtbrick";
|
|
repo = "bngblaster";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-zljpApecUKtdU1HqLmeREeL+rmDUMhBWnycgmENlt1o=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|