bind: only include libcap on linux

wip/yesman
Matthew Justin Bauer 6 years ago committed by GitHub
parent 45af94bfb9
commit 6af1426421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      pkgs/servers/dns/bind/default.nix

@ -24,7 +24,8 @@ stdenv.mkDerivation rec {
stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
nativeBuildInputs = [ perl ];
buildInputs = [ libcap libtool libxml2 openssl ]
buildInputs = [ libtool libxml2 openssl ]
++ lib.optional stdenv.isLinux libcap
++ lib.optional enableSeccomp libseccomp
++ lib.optional enablePython python3;
@ -34,7 +35,6 @@ stdenv.mkDerivation rec {
configureFlags = [
"--localstatedir=/var"
"--with-libcap=${libcap.dev}"
"--with-libtool"
"--with-libxml2=${libxml2.dev}"
"--with-openssl=${openssl.dev}"
@ -54,7 +54,8 @@ stdenv.mkDerivation rec {
"--with-gost"
"--without-eddsa"
"--with-aes"
] ++ lib.optional enableSeccomp "--enable-seccomp";
] ++ lib.optional stdenv.isLinux "--with-libcap=${libcap.dev}"
++ lib.optional enableSeccomp "--enable-seccomp";
postInstall = ''
moveToOutput bin/bind9-config $dev

Loading…
Cancel
Save