bootstrap tools: have curl without http2 support
I assume there's not much use for it during bootstrapping. This fixes them as well, as curl was compiled against libnghttp2 but the lib wasn't copied to the bootstrap tools.
This commit is contained in:
parent
0fe58cade5
commit
ee994dfae6
|
@ -11,6 +11,7 @@ rec {
|
||||||
});
|
});
|
||||||
|
|
||||||
curlMinimal = curl.override {
|
curlMinimal = curl.override {
|
||||||
|
http2Support = false;
|
||||||
zlibSupport = false;
|
zlibSupport = false;
|
||||||
sslSupport = false;
|
sslSupport = false;
|
||||||
scpSupport = false;
|
scpSupport = false;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv, fetchurl, libnghttp2, pkgconfig, perl
|
{ stdenv, fetchurl, pkgconfig, perl
|
||||||
|
, http2Support ? true, libnghttp2
|
||||||
, idnSupport ? false, libidn ? null
|
, idnSupport ? false, libidn ? null
|
||||||
, ldapSupport ? false, openldap ? null
|
, ldapSupport ? false, openldap ? null
|
||||||
, zlibSupport ? false, zlib ? null
|
, zlibSupport ? false, zlib ? null
|
||||||
|
@ -8,6 +9,7 @@
|
||||||
, c-aresSupport ? false, c-ares ? null
|
, c-aresSupport ? false, c-ares ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert http2Support -> libnghttp2 != null;
|
||||||
assert idnSupport -> libidn != null;
|
assert idnSupport -> libidn != null;
|
||||||
assert ldapSupport -> openldap != null;
|
assert ldapSupport -> openldap != null;
|
||||||
assert zlibSupport -> zlib != null;
|
assert zlibSupport -> zlib != null;
|
||||||
|
@ -29,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||||
# "-lz -lssl", which aren't necessary direct build inputs of
|
# "-lz -lssl", which aren't necessary direct build inputs of
|
||||||
# applications that use Curl.
|
# applications that use Curl.
|
||||||
propagatedBuildInputs = with stdenv.lib;
|
propagatedBuildInputs = with stdenv.lib;
|
||||||
[ libnghttp2 ] ++
|
optional http2Support libnghttp2 ++
|
||||||
optional idnSupport libidn ++
|
optional idnSupport libidn ++
|
||||||
optional ldapSupport openldap ++
|
optional ldapSupport openldap ++
|
||||||
optional zlibSupport zlib ++
|
optional zlibSupport zlib ++
|
||||||
|
@ -47,7 +49,7 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
|
"--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
|
||||||
"--disable-manual"
|
"--disable-manual"
|
||||||
"--with-nghttp2=${libnghttp2}"
|
( if http2Support then "--with-nghttp2=${libnghttp2}" else "--without-nghttp2" )
|
||||||
( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" )
|
( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" )
|
||||||
( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" )
|
( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" )
|
||||||
( if ldapSupport then "--enable-ldap" else "--disable-ldap" )
|
( if ldapSupport then "--enable-ldap" else "--disable-ldap" )
|
||||||
|
|
Loading…
Reference in New Issue