2015-05-22 14:49:27 +01:00
|
|
|
{ stdenv, fetchurl, getopt }:
|
|
|
|
|
2015-09-07 20:28:33 +01:00
|
|
|
let version = "2.2.3"; in
|
2014-04-09 01:37:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-22 14:49:27 +01:00
|
|
|
name = "libseccomp-${version}";
|
2014-04-09 01:37:47 +01:00
|
|
|
|
2015-05-22 14:49:27 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/seccomp/libseccomp/releases/download/v${version}/libseccomp-${version}.tar.gz";
|
2015-09-08 09:48:42 +01:00
|
|
|
sha256 = "d9b400b703cab7bb04b84b9b6e52076a630b673819d7541757bcc16467b6d49e";
|
2014-04-09 01:37:47 +01:00
|
|
|
};
|
|
|
|
|
2015-05-22 14:49:27 +01:00
|
|
|
buildInputs = [ getopt ];
|
2015-03-27 00:54:08 +00:00
|
|
|
|
2014-04-09 01:37:47 +01:00
|
|
|
patchPhase = ''
|
2015-03-27 00:54:08 +00:00
|
|
|
patchShebangs .
|
2014-04-09 01:37:47 +01:00
|
|
|
'';
|
|
|
|
|
2015-03-27 00:54:08 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-04-09 01:37:47 +01:00
|
|
|
description = "high level library for the Linux Kernel seccomp filter";
|
|
|
|
homepage = "http://sourceforge.net/projects/libseccomp";
|
2015-03-27 00:54:08 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice wkennington ];
|
2014-04-09 01:37:47 +01:00
|
|
|
};
|
|
|
|
}
|