Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 bison, 8 flex, 9 libtrace, 10 nix-update-script, 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "libflowmanager"; 15 version = "3.0.0-3"; 16 17 src = fetchFromGitHub { 18 owner = "LibtraceTeam"; 19 repo = "libflowmanager"; 20 tag = finalAttrs.version; 21 hash = "sha256-lQo8F4w+tu0DZgt0pnbEpwcL6buVbAuFoxtwGFXuGX4="; 22 }; 23 24 strictDeps = true; 25 26 nativeBuildInputs = [ 27 autoreconfHook 28 pkg-config 29 bison 30 flex 31 ]; 32 buildInputs = [ libtrace ]; 33 34 passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=^([0-9.-]+)$" ]; }; 35 36 meta = { 37 description = "Library for assigning network packets to flows based on the standard 5-tuple"; 38 homepage = "https://github.com/LibtraceTeam/libflowmanager"; 39 changelog = "https://github.com/LibtraceTeam/libflowmanager/releases/tag/${finalAttrs.version}"; 40 license = lib.licenses.lgpl3Plus; 41 maintainers = with lib.maintainers; [ felbinger ]; 42 platforms = lib.platforms.unix; 43 }; 44})