depot/third_party/nixpkgs/pkgs/by-name/bn/bngblaster/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

53 lines
1 KiB
Nix

{ 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;
};
})