1 { lib, stdenv, fetchurl, getopt, util-linuxMinimal, which, gperf, nix-update-script }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/seccomp/libseccomp/releases/download/v${version}/libseccomp-${version}.tar.gz";
9 sha256 = "sha256-2CkCQAQFzwBoV07z3B/l9ZJiB1Q7oa5vjnoVdjUdy9s=";
12 outputs = [ "out" "lib" "dev" "man" "pythonsrc" ];
14 nativeBuildInputs = [ gperf ];
15 buildInputs = [ getopt ];
21 nativeCheckInputs = [ util-linuxMinimal which ];
24 # Hack to ensure that patchelf --shrink-rpath get rids of a $TMPDIR reference.
25 preFixup = "rm -rfv src";
27 # Copy the python module code into a tarball that we can export and use as the
28 # src input for buildPythonPackage calls
30 cp -R ./src/python/ tmp-pythonsrc/
31 tar -zcf $pythonsrc --mtime="@$SOURCE_DATE_EPOCH" --sort=name --transform s/tmp-pythonsrc/python-foundationdb/ ./tmp-pythonsrc/
35 updateScript = nix-update-script { };
39 description = "High level library for the Linux Kernel seccomp filter";
40 homepage = "https://github.com/seccomp/libseccomp";
41 license = licenses.lgpl21Only;
42 platforms = platforms.linux;
50 maintainers = with maintainers; [ thoughtpolice ];