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)
This commit is contained in:
Nicolas Dudebout 2018-06-09 19:43:13 -04:00 committed by xeji
parent 9ef30fd56a
commit 72fe3d7b08

View File

@ -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"