about summary refs log tree commit diff
path: root/pkgs/servers/dns
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2019-02-03 15:33:28 +0000
committerJan Malakhovski <oxij@oxij.org>2019-02-03 15:33:28 +0000
commita111b5fde4af9c73861307225496521d5bef0a27 (patch)
treea3444211ee4e29b73810629399ca963986616fb9 /pkgs/servers/dns
parentbe79fc5c331280732d0fbcf8a7a5eed3b69e1e01 (diff)
downloadnixlib-a111b5fde4af9c73861307225496521d5bef0a27.tar
nixlib-a111b5fde4af9c73861307225496521d5bef0a27.tar.gz
nixlib-a111b5fde4af9c73861307225496521d5bef0a27.tar.bz2
nixlib-a111b5fde4af9c73861307225496521d5bef0a27.tar.lz
nixlib-a111b5fde4af9c73861307225496521d5bef0a27.tar.xz
nixlib-a111b5fde4af9c73861307225496521d5bef0a27.tar.zst
nixlib-a111b5fde4af9c73861307225496521d5bef0a27.zip
bind: move defaults to package file
Diffstat (limited to 'pkgs/servers/dns')
-rw-r--r--pkgs/servers/dns/bind/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix
index 74e1fda2d423..550a8fa13cca 100644
--- a/pkgs/servers/dns/bind/default.nix
+++ b/pkgs/servers/dns/bind/default.nix
@@ -1,7 +1,7 @@
-{ stdenv, lib, fetchurl
+{ config, stdenv, lib, fetchurl
 , perl
 , libcap, libtool, libxml2, openssl
-, enablePython ? false, python3 ? null
+, enablePython ? config.bind.enablePython or false, python3 ? null
 , enableSeccomp ? false, libseccomp ? null, buildPackages
 }:
 
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
   buildInputs = [ libtool libxml2 openssl ]
     ++ lib.optional stdenv.isLinux libcap
     ++ lib.optional enableSeccomp libseccomp
-    ++ lib.optional enablePython python3;
+    ++ lib.optional enablePython (python3.withPackages (ps: with ps; [ ply ]));
 
   STD_CDEFINES = [ "-DDIG_SIGCHASE=1" ]; # support +sigchase