mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
bison,
|
|
flex,
|
|
zlib,
|
|
bzip2,
|
|
xz,
|
|
libpcap,
|
|
wandio,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libtrace";
|
|
version = "4.0.32-2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LibtraceTeam";
|
|
repo = "libtrace";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-cqRhTNSXvNlZW63baxqcqVJJEVe8SeunTPdJ623kIvo=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|