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