summary refs log tree commit diff
path: root/pkgs/servers/dns/bind
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-06-09 19:25:46 +0200
committerPeter Simons <simons@cryp.to>2013-06-10 15:38:00 +0200
commit2e618df5324c56fbaa30af16aa19deded3d40387 (patch)
treeb3ea2faf4d8c0941b5512d88dea91a6622c23386 /pkgs/servers/dns/bind
parentae5b6de50f08fac4df98ea6668d78cdf8058c10d (diff)
downloadnixlib-2e618df5324c56fbaa30af16aa19deded3d40387.tar
nixlib-2e618df5324c56fbaa30af16aa19deded3d40387.tar.gz
nixlib-2e618df5324c56fbaa30af16aa19deded3d40387.tar.bz2
nixlib-2e618df5324c56fbaa30af16aa19deded3d40387.tar.lz
nixlib-2e618df5324c56fbaa30af16aa19deded3d40387.tar.xz
nixlib-2e618df5324c56fbaa30af16aa19deded3d40387.tar.zst
nixlib-2e618df5324c56fbaa30af16aa19deded3d40387.zip
bind: avoid build impurity by explicitly enabling/disabling features
The BIND configure script finds extra dependencies in /usr/include and /usr/lib,
and activates additional features if it does. This may cause the build to fail
on systems that cannot use a chroot environment. Actively disabling those
additional features prevents this issue from occurring.
Diffstat (limited to 'pkgs/servers/dns/bind')
-rw-r--r--pkgs/servers/dns/bind/default.nix18
1 files changed, 15 insertions, 3 deletions
diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix
index 1df30e254918..4d256f926266 100644
--- a/pkgs/servers/dns/bind/default.nix
+++ b/pkgs/servers/dns/bind/default.nix
@@ -17,9 +17,21 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ openssl libtool perl libxml2 ];
 
-  /* Why --with-libtool? */
-  configureFlags = [ "--with-libtool" "--with-openssl=${openssl}"
-    "--localstatedir=/var" ];
+  configureFlags = [
+    "--localstatedir=/var"
+    "--with-libtool"
+    "--with-libxml2=${libxml2}"
+    "--with-openssl=${openssl}"
+    "--without-atf"
+    "--without-dlopen"
+    "--without-docbook-xsl"
+    "--without-gssapi"
+    "--without-idn"
+    "--without-idnlib"
+    "--without-pkcs11"
+    "--without-purify"
+    "--without-python"
+  ];
 
   meta = {
     homepage = "http://www.isc.org/software/bind";