diff options
Diffstat (limited to 'pkgs/servers/dns/bind/default.nix')
-rw-r--r-- | pkgs/servers/dns/bind/default.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index c0176db15769..e2262cdb7c84 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -1,5 +1,6 @@ { stdenv, lib, fetchurl, openssl, libtool, perl, libxml2 -, enableSeccomp ? false, libseccomp ? null }: +, enableSeccomp ? false, libseccomp ? null, buildPackages +}: assert enableSeccomp -> libseccomp != null; @@ -13,6 +14,8 @@ stdenv.mkDerivation rec { sha256 = "10iwkghl5g50b7wc17bsb9wa0dh2gd57bjlk6ynixhywz6dhx1r9"; }; + preConfigure = "export AR=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}ar"; + outputs = [ "out" "lib" "dev" "man" "dnsutils" "host" ]; patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++ @@ -24,6 +27,10 @@ stdenv.mkDerivation rec { STD_CDEFINES = [ "-DDIG_SIGCHASE=1" ]; # support +sigchase + BUILD_CC = "cc"; + + depsBuildBuild = [ buildPackages.stdenv.cc ]; + configureFlags = [ "--localstatedir=/var" "--with-libtool" @@ -39,6 +46,11 @@ stdenv.mkDerivation rec { "--without-pkcs11" "--without-purify" "--without-python" + "--with-randomdev=/dev/random" + "--with-ecdsa" + "--with-gost" + "--without-eddsa" + "--with-aes" ] ++ lib.optional enableSeccomp "--enable-seccomp"; postInstall = '' |