bind: compile with libcap (#41755)

Additionally:

+ split native and other build inputs
+ alphabetically order dependencies
+ explicitly disable libjson support (the configure script looks for it in
/usr, /usr/local, and /opt/local)

authored by Nicolas Dudebout and committed by xeji 72fe3d7b 9ef30fd5

+6 -2
+6 -2
pkgs/servers/dns/bind/default.nix
··· 1 - { stdenv, lib, fetchurl, openssl, libtool, perl, libxml2 1 + { stdenv, lib, fetchurl 2 + , perl 3 + , libcap, libtool, libxml2, openssl 2 4 , enablePython ? false, python3 ? null 3 5 , enableSeccomp ? false, libseccomp ? null, buildPackages 4 6 }: ··· 22 24 stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch; 23 25 24 26 nativeBuildInputs = [ perl ]; 25 - buildInputs = [ openssl libtool libxml2 ] 27 + buildInputs = [ libcap libtool libxml2 openssl ] 26 28 ++ lib.optional enableSeccomp libseccomp 27 29 ++ lib.optional enablePython python3; 28 30 ··· 32 34 33 35 configureFlags = [ 34 36 "--localstatedir=/var" 37 + "--with-libcap=${libcap.dev}" 35 38 "--with-libtool" 36 39 "--with-libxml2=${libxml2.dev}" 37 40 "--with-openssl=${openssl.dev}" ··· 43 46 "--without-idn" 44 47 "--without-idnlib" 45 48 "--without-lmdb" 49 + "--without-libjson" 46 50 "--without-pkcs11" 47 51 "--without-purify" 48 52 "--with-randomdev=/dev/random"