diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index 2b1830ea6797..d424d510cd28 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -1,4 +1,6 @@ -{ stdenv, lib, fetchurl, openssl, libtool, perl, libxml2 +{ stdenv, lib, fetchurl +, perl +, libcap, libtool, libxml2, openssl , enablePython ? false, python3 ? null , enableSeccomp ? false, libseccomp ? null, buildPackages }: @@ -22,7 +24,7 @@ stdenv.mkDerivation rec { stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch; nativeBuildInputs = [ perl ]; - buildInputs = [ openssl libtool libxml2 ] + buildInputs = [ libcap libtool libxml2 openssl ] ++ lib.optional enableSeccomp libseccomp ++ lib.optional enablePython python3; @@ -32,6 +34,7 @@ stdenv.mkDerivation rec { configureFlags = [ "--localstatedir=/var" + "--with-libcap=${libcap.dev}" "--with-libtool" "--with-libxml2=${libxml2.dev}" "--with-openssl=${openssl.dev}" @@ -43,6 +46,7 @@ stdenv.mkDerivation rec { "--without-idn" "--without-idnlib" "--without-lmdb" + "--without-libjson" "--without-pkcs11" "--without-purify" "--with-randomdev=/dev/random"