From b139e8d9333304fd4ca23295ccbb2c096e20946f Mon Sep 17 00:00:00 2001 From: Nico Felbinger Date: Fri, 6 Jun 2025 17:26:08 +0200 Subject: [PATCH] libtrace: init at 4.0.28-1 --- pkgs/by-name/li/libtrace/package.nix | 54 ++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 pkgs/by-name/li/libtrace/package.nix diff --git a/pkgs/by-name/li/libtrace/package.nix b/pkgs/by-name/li/libtrace/package.nix new file mode 100644 index 000000000000..700f98edf0f7 --- /dev/null +++ b/pkgs/by-name/li/libtrace/package.nix @@ -0,0 +1,54 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + pkg-config, + bison, + flex, + zlib, + bzip2, + xz, + libpcap, + wandio, + nix-update-script, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libtrace"; + version = "4.0.28-1"; + + src = fetchFromGitHub { + owner = "LibtraceTeam"; + repo = "libtrace"; + tag = finalAttrs.version; + hash = "sha256-impZrZOOORsQaUz04pkCXGxJkXGaCBcJD390hm74peA="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + bison + flex + ]; + buildInputs = [ + zlib + bzip2 + xz + libpcap + wandio + ]; + + passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=^([0-9.-]+)$" ]; }; + + meta = { + description = "C Library for working with network packet traces"; + homepage = "https://github.com/LibtraceTeam/libtrace"; + changelog = "https://github.com/LibtraceTeam/libtrace/releases/tag/${finalAttrs.version}"; + license = lib.licenses.lgpl3Only; + maintainers = with lib.maintainers; [ felbinger ]; + platforms = lib.platforms.unix; + }; +})