bind: only include libcap on linux
This commit is contained in:
parent
45af94bfb9
commit
6af1426421
@ -24,7 +24,8 @@ stdenv.mkDerivation rec {
|
|||||||
stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
|
stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
|
||||||
|
|
||||||
nativeBuildInputs = [ perl ];
|
nativeBuildInputs = [ perl ];
|
||||||
buildInputs = [ libcap libtool libxml2 openssl ]
|
buildInputs = [ libtool libxml2 openssl ]
|
||||||
|
++ lib.optional stdenv.isLinux libcap
|
||||||
++ lib.optional enableSeccomp libseccomp
|
++ lib.optional enableSeccomp libseccomp
|
||||||
++ lib.optional enablePython python3;
|
++ lib.optional enablePython python3;
|
||||||
|
|
||||||
@ -34,7 +35,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--with-libcap=${libcap.dev}"
|
|
||||||
"--with-libtool"
|
"--with-libtool"
|
||||||
"--with-libxml2=${libxml2.dev}"
|
"--with-libxml2=${libxml2.dev}"
|
||||||
"--with-openssl=${openssl.dev}"
|
"--with-openssl=${openssl.dev}"
|
||||||
@ -54,7 +54,8 @@ stdenv.mkDerivation rec {
|
|||||||
"--with-gost"
|
"--with-gost"
|
||||||
"--without-eddsa"
|
"--without-eddsa"
|
||||||
"--with-aes"
|
"--with-aes"
|
||||||
] ++ lib.optional enableSeccomp "--enable-seccomp";
|
] ++ lib.optional stdenv.isLinux "--with-libcap=${libcap.dev}"
|
||||||
|
++ lib.optional enableSeccomp "--enable-seccomp";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
moveToOutput bin/bind9-config $dev
|
moveToOutput bin/bind9-config $dev
|
||||||
|
Loading…
x
Reference in New Issue
Block a user