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:
parent
9ef30fd56a
commit
72fe3d7b08
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, lib, fetchurl, openssl, libtool, perl, libxml2
|
{ stdenv, lib, fetchurl
|
||||||
|
, perl
|
||||||
|
, libcap, libtool, libxml2, openssl
|
||||||
, enablePython ? false, python3 ? null
|
, enablePython ? false, python3 ? null
|
||||||
, enableSeccomp ? false, libseccomp ? null, buildPackages
|
, enableSeccomp ? false, libseccomp ? null, buildPackages
|
||||||
}:
|
}:
|
||||||
@ -22,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
|
stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
|
||||||
|
|
||||||
nativeBuildInputs = [ perl ];
|
nativeBuildInputs = [ perl ];
|
||||||
buildInputs = [ openssl libtool libxml2 ]
|
buildInputs = [ libcap libtool libxml2 openssl ]
|
||||||
++ lib.optional enableSeccomp libseccomp
|
++ lib.optional enableSeccomp libseccomp
|
||||||
++ lib.optional enablePython python3;
|
++ lib.optional enablePython python3;
|
||||||
|
|
||||||
@ -32,6 +34,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
|
"--with-libcap=${libcap.dev}"
|
||||||
"--with-libtool"
|
"--with-libtool"
|
||||||
"--with-libxml2=${libxml2.dev}"
|
"--with-libxml2=${libxml2.dev}"
|
||||||
"--with-openssl=${openssl.dev}"
|
"--with-openssl=${openssl.dev}"
|
||||||
@ -43,6 +46,7 @@ stdenv.mkDerivation rec {
|
|||||||
"--without-idn"
|
"--without-idn"
|
||||||
"--without-idnlib"
|
"--without-idnlib"
|
||||||
"--without-lmdb"
|
"--without-lmdb"
|
||||||
|
"--without-libjson"
|
||||||
"--without-pkcs11"
|
"--without-pkcs11"
|
||||||
"--without-purify"
|
"--without-purify"
|
||||||
"--with-randomdev=/dev/random"
|
"--with-randomdev=/dev/random"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user