bind: enable seccomp on linux

This commit is contained in:
Franz Pletz 2016-09-28 03:37:36 +02:00
parent 33ccf3abed
commit 96b1d15e0c
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -1,4 +1,5 @@
{ stdenv, fetchurl, openssl, libtool, perl, libxml2 }:
{ stdenv, fetchurl, openssl, libtool, perl, libxml2
, libseccomp ? null }:
let version = "9.10.4-P3"; in
@ -15,7 +16,8 @@ stdenv.mkDerivation rec {
patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++
stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
buildInputs = [ openssl libtool perl libxml2 ];
buildInputs = [ openssl libtool perl libxml2 ] ++
stdenv.lib.optional stdenv.isLinux libseccomp;
configureFlags = [
"--localstatedir=/var"
@ -31,6 +33,7 @@ stdenv.mkDerivation rec {
"--without-pkcs11"
"--without-purify"
"--without-python"
"--enable-seccomp"
];
postInstall = ''