diff --git a/pkgs/by-name/li/libflowmanager/package.nix b/pkgs/by-name/li/libflowmanager/package.nix new file mode 100644 index 000000000000..b57b95f20337 --- /dev/null +++ b/pkgs/by-name/li/libflowmanager/package.nix @@ -0,0 +1,44 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + pkg-config, + bison, + flex, + libtrace, + nix-update-script, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libflowmanager"; + version = "3.0.0-3"; + + src = fetchFromGitHub { + owner = "LibtraceTeam"; + repo = "libflowmanager"; + tag = finalAttrs.version; + hash = "sha256-lQo8F4w+tu0DZgt0pnbEpwcL6buVbAuFoxtwGFXuGX4="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + bison + flex + ]; + buildInputs = [ libtrace ]; + + passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=^([0-9.-]+)$" ]; }; + + meta = { + description = "Library for assigning network packets to flows based on the standard 5-tuple"; + homepage = "https://github.com/LibtraceTeam/libflowmanager"; + changelog = "https://github.com/LibtraceTeam/libflowmanager/releases/tag/${finalAttrs.version}"; + license = lib.licenses.lgpl3Plus; + maintainers = with lib.maintainers; [ felbinger ]; + platforms = lib.platforms.unix; + }; +})