about summary refs log tree commit diff
path: root/pkgs/servers/dns/bind/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2017-11-15 15:33:30 +0100
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2017-11-16 01:52:28 +0100
commit9826f5cc3cd9d1c2e31d8110952018bdf8f1a956 (patch)
tree6c9bd490d1d021eda5334d2f1f9a6b475076b688 /pkgs/servers/dns/bind/default.nix
parent089e0aaf722dffec033ec79f9ac7182c79504553 (diff)
downloadnixlib-9826f5cc3cd9d1c2e31d8110952018bdf8f1a956.tar
nixlib-9826f5cc3cd9d1c2e31d8110952018bdf8f1a956.tar.gz
nixlib-9826f5cc3cd9d1c2e31d8110952018bdf8f1a956.tar.bz2
nixlib-9826f5cc3cd9d1c2e31d8110952018bdf8f1a956.tar.lz
nixlib-9826f5cc3cd9d1c2e31d8110952018bdf8f1a956.tar.xz
nixlib-9826f5cc3cd9d1c2e31d8110952018bdf8f1a956.tar.zst
nixlib-9826f5cc3cd9d1c2e31d8110952018bdf8f1a956.zip
nixos/nsd: automatic DNSSEC using BIND toolset
Diffstat (limited to 'pkgs/servers/dns/bind/default.nix')
-rw-r--r--pkgs/servers/dns/bind/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix
index bf7a7266022e..c52761e66b6f 100644
--- a/pkgs/servers/dns/bind/default.nix
+++ b/pkgs/servers/dns/bind/default.nix
@@ -1,7 +1,9 @@
 { stdenv, lib, fetchurl, openssl, libtool, perl, libxml2
-, enableSeccomp ? false, libseccomp ? null }:
+, enableSeccomp ? false, libseccomp ? null
+, enablePython ? false, python ? null }:
 
 assert enableSeccomp -> libseccomp != null;
+assert enablePython -> python != null;
 
 let version = "9.11.2"; in
 
@@ -18,8 +20,9 @@ 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 ] ++
-    stdenv.lib.optional enableSeccomp libseccomp;
+  buildInputs = [ openssl libtool perl libxml2 ]
+    ++ lib.optional enableSeccomp libseccomp
+    ++ lib.optional enablePython python;
 
   STD_CDEFINES = [ "-DDIG_SIGCHASE=1" ]; # support +sigchase
 
@@ -28,6 +31,7 @@ stdenv.mkDerivation rec {
     "--with-libtool"
     "--with-libxml2=${libxml2.dev}"
     "--with-openssl=${openssl.dev}"
+    (if enablePython then "--with-python" else "--without-python")
     "--without-atf"
     "--without-dlopen"
     "--without-docbook-xsl"
@@ -36,7 +40,6 @@ stdenv.mkDerivation rec {
     "--without-idnlib"
     "--without-pkcs11"
     "--without-purify"
-    "--without-python"
   ] ++ lib.optional enableSeccomp "--enable-seccomp";
 
   postInstall = ''