nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, getopt, makeWrapper, utillinux }:
2
3stdenv.mkDerivation rec {
4 name = "libseccomp-${version}";
5 version = "2.4.0";
6
7 src = fetchurl {
8 url = "https://github.com/seccomp/libseccomp/releases/download/v${version}/libseccomp-${version}.tar.gz";
9 sha256 = "0paj1szszpf8plykrd66jqg1x3kmqs395rbjskahld2bnplcfx1f";
10 };
11
12 outputs = [ "out" "lib" "dev" "man" ];
13
14 buildInputs = [ getopt makeWrapper ];
15
16 patchPhase = ''
17 patchShebangs .
18 '';
19
20 checkInputs = [ utillinux ];
21 doCheck = false; # dependency cycle
22
23 # Hack to ensure that patchelf --shrink-rpath get rids of a $TMPDIR reference.
24 preFixup = "rm -rfv src";
25
26 meta = with stdenv.lib; {
27 description = "High level library for the Linux Kernel seccomp filter";
28 homepage = "https://github.com/seccomp/libseccomp";
29 license = licenses.lgpl21;
30 platforms = platforms.linux;
31 badPlatforms = platforms.riscv;
32 maintainers = with maintainers; [ thoughtpolice ];
33 };
34}