1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 pkg-config,
7 bison,
8 flex,
9 zlib,
10 bzip2,
11 xz,
12 libpcap,
13 wandio,
14 nix-update-script,
15}:
16
17stdenv.mkDerivation (finalAttrs: {
18 pname = "libtrace";
19 version = "4.0.28-1";
20
21 src = fetchFromGitHub {
22 owner = "LibtraceTeam";
23 repo = "libtrace";
24 tag = finalAttrs.version;
25 hash = "sha256-impZrZOOORsQaUz04pkCXGxJkXGaCBcJD390hm74peA=";
26 };
27
28 strictDeps = true;
29
30 nativeBuildInputs = [
31 autoreconfHook
32 pkg-config
33 bison
34 flex
35 ];
36 buildInputs = [
37 zlib
38 bzip2
39 xz
40 libpcap
41 wandio
42 ];
43
44 passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=^([0-9.-]+)$" ]; };
45
46 meta = {
47 description = "C Library for working with network packet traces";
48 homepage = "https://github.com/LibtraceTeam/libtrace";
49 changelog = "https://github.com/LibtraceTeam/libtrace/releases/tag/${finalAttrs.version}";
50 license = lib.licenses.lgpl3Only;
51 maintainers = with lib.maintainers; [ felbinger ];
52 platforms = lib.platforms.unix;
53 };
54})