diff options
author | Matthew Justin Bauer <mjbauer95@gmail.com> | 2018-06-10 20:04:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-10 20:04:29 -0400 |
commit | 6af1426421c743b952f0202ff081930d12f2357c (patch) | |
tree | bc90c8a9a31523c2b20eb0e632ba465d800d7455 /pkgs/servers/dns/bind | |
parent | 45af94bfb97d5540641d25fb4385e74f04208a39 (diff) | |
download | nixpkgs-6af1426421c743b952f0202ff081930d12f2357c.tar nixpkgs-6af1426421c743b952f0202ff081930d12f2357c.tar.gz nixpkgs-6af1426421c743b952f0202ff081930d12f2357c.tar.bz2 nixpkgs-6af1426421c743b952f0202ff081930d12f2357c.tar.lz nixpkgs-6af1426421c743b952f0202ff081930d12f2357c.tar.xz nixpkgs-6af1426421c743b952f0202ff081930d12f2357c.tar.zst nixpkgs-6af1426421c743b952f0202ff081930d12f2357c.zip |
bind: only include libcap on linux
Diffstat (limited to 'pkgs/servers/dns/bind')
-rw-r--r-- | pkgs/servers/dns/bind/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index d424d510cd2..b0fb29677f9 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/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 |