2015-03-27 01:54:08 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, getopt }:
|
2014-04-09 02:37:47 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libseccomp-${version}";
|
2015-07-20 20:28:49 +02:00
|
|
|
version = "2.2.3";
|
2014-04-09 02:37:47 +02:00
|
|
|
|
2015-03-27 01:54:08 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seccomp";
|
|
|
|
repo = "libseccomp";
|
|
|
|
rev = "v${version}";
|
2015-07-20 20:28:49 +02:00
|
|
|
sha256 = "0pl827qjls5b6kjj8qxxdwcn6rviqbm5xjqf0hgx6b04c836mswx";
|
2014-04-09 02:37:47 +02:00
|
|
|
};
|
|
|
|
|
2015-03-27 01:54:08 +01:00
|
|
|
buildInputs = [ autoreconfHook getopt ];
|
|
|
|
|
2014-04-09 02:37:47 +02:00
|
|
|
patchPhase = ''
|
2015-03-27 01:54:08 +01:00
|
|
|
patchShebangs .
|
2014-04-09 02:37:47 +02:00
|
|
|
'';
|
|
|
|
|
2015-03-27 01:54:08 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-04-09 02:37:47 +02:00
|
|
|
description = "high level library for the Linux Kernel seccomp filter";
|
|
|
|
homepage = "http://sourceforge.net/projects/libseccomp";
|
2015-03-27 01:54:08 +01:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice wkennington ];
|
2014-04-09 02:37:47 +02:00
|
|
|
};
|
|
|
|
}
|