libseccomp: 2.1.1 -> 2.2.0
This commit is contained in:
parent
7719f7f23b
commit
1eeee6c87c
@ -1,31 +1,27 @@
|
|||||||
{ stdenv, fetchurl, getopt, bash }:
|
{ stdenv, fetchFromGitHub, autoreconfHook, getopt }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libseccomp-${version}";
|
name = "libseccomp-${version}";
|
||||||
version = "2.1.1";
|
version = "2.2.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/libseccomp/libseccomp-${version}.tar.gz";
|
owner = "seccomp";
|
||||||
sha256 = "0744mjx5m3jl1hzz13zypivl88m0wn44mf5gsrd3yf3w80gc24l8";
|
repo = "libseccomp";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0vfd6hx92cp1jaqxxaj30r92bfm6fmamxi2yqxrl82mqism1lk84";
|
||||||
};
|
};
|
||||||
|
|
||||||
# This fixes the check for 'getopt' to function appropriately.
|
buildInputs = [ autoreconfHook getopt ];
|
||||||
# Additionally, this package can optionally include the kernel
|
|
||||||
# headers if they exist, or use its own inline copy of the source
|
|
||||||
# for talking to the seccomp filter - we opt to always use the
|
|
||||||
# inline copy
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace ./configure --replace "/bin/bash" "${bash}/bin/bash"
|
patchShebangs .
|
||||||
substituteInPlace ./configure --replace "verify_deps getopt" ""
|
|
||||||
substituteInPlace ./configure --replace getopt ${getopt}/bin/getopt
|
|
||||||
substituteInPlace ./configure --replace 'opt_sysinc_seccomp="yes"' 'opt_sysinc_seccomp="no"'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "high level library for the Linux Kernel seccomp filter";
|
description = "high level library for the Linux Kernel seccomp filter";
|
||||||
homepage = "http://sourceforge.net/projects/libseccomp";
|
homepage = "http://sourceforge.net/projects/libseccomp";
|
||||||
license = stdenv.lib.licenses.lgpl2;
|
license = licenses.lgpl2;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
maintainers = with maintainers; [ thoughtpolice wkennington ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user