blob: 0d90da27c468e2e5f34a13bcd5397c9c42672190 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ stdenv
, lib
, fetchFromGitHub
, cmake
, cmocka
, libdict
, ncurses
, jansson
, openssl
, libpcap
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bngblaster";
version = "0.8.44";
src = fetchFromGitHub {
owner = "rtbrick";
repo = "bngblaster";
rev = finalAttrs.version;
hash = "sha256-kKzrXw6HQ2917RBArj2BxixXXH0mIvC4IeEU2JY4F9s=";
};
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;
};
})
|