1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 libpcap,
7 versionCheckHook,
8 gitUpdater,
9}:
10
11stdenv.mkDerivation (finalAttrs: {
12 pname = "softflowd";
13 version = "1.1.1";
14
15 src = fetchFromGitHub {
16 owner = "irino";
17 repo = "softflowd";
18 tag = "softflowd-v${finalAttrs.version}";
19 hash = "sha256-qWHwkXT1Lw8fe9nELaMB6EzAnNxsDvxiLWH3AacVZeA=";
20 };
21
22 nativeBuildInputs = [
23 autoreconfHook
24 ];
25
26 buildInputs = [
27 libpcap
28 ];
29
30 nativeInstallCheckInputs = [
31 versionCheckHook
32 ];
33
34 doInstallCheck = true;
35
36 passthru.updateScript = gitUpdater { rev-prefix = "softflowd-v"; };
37
38 meta = {
39 description = "Flow-based network traffic analyser capable of Cisco NetFlow";
40 homepage = "https://github.com/irino/softflowd";
41 changelog = "https://github.com/irino/softflowd/releases/tag/spftflowd-v${finalAttrs.version}";
42 license = lib.licenses.bsd2;
43 maintainers = with lib.maintainers; [ fooker ];
44 platforms = lib.platforms.unix;
45 };
46})