1{ stdenv, fetchurl, getopt, makeWrapper }:
2
3stdenv.mkDerivation rec {
4 name = "libseccomp-${version}";
5 version = "2.3.3";
6
7 src = fetchurl {
8 url = "https://github.com/seccomp/libseccomp/releases/download/v${version}/libseccomp-${version}.tar.gz";
9 sha256 = "0mdiyfljrkfl50q1m3ws8yfcyfjwf1zgkvcva8ffcwncji18zhkz";
10 };
11
12 buildInputs = [ getopt makeWrapper ];
13
14 patchPhase = ''
15 patchShebangs .
16 '';
17
18 # Hack to ensure that patchelf --shrink-rpath get rids of a $TMPDIR reference.
19 preFixup = "rm -rfv src";
20
21 meta = with stdenv.lib; {
22 description = "High level library for the Linux Kernel seccomp filter";
23 homepage = "https://github.com/seccomp/libseccomp";
24 license = licenses.lgpl21;
25 platforms = platforms.linux;
26 maintainers = with maintainers; [ thoughtpolice wkennington ];
27 };
28}