2020-11-24 20:58:05 +00:00
|
|
|
{ stdenv, fetchurl, getopt, util-linux, gperf }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libseccomp";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/seccomp/libseccomp/releases/download/v${version}/libseccomp-${version}.tar.gz";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "1wql62cg8f95cwpy057cl764nni9g4sdn5lqj68x22kjs8w71yhz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = [ gperf ];
|
|
|
|
buildInputs = [ getopt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
checkInputs = [ util-linux ];
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false; # dependency cycle
|
|
|
|
|
|
|
|
# Hack to ensure that patchelf --shrink-rpath get rids of a $TMPDIR reference.
|
|
|
|
preFixup = "rm -rfv src";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "High level library for the Linux Kernel seccomp filter";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/seccomp/libseccomp";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
badPlatforms = [
|
|
|
|
"alpha-linux"
|
2020-09-25 04:45:31 +00:00
|
|
|
"riscv32-linux"
|
|
|
|
"sparc-linux"
|
|
|
|
"sparc64-linux"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|