Merge branch 'curl-ssl-cert-file' of https://github.com/the-kenny/nixpkgs into staging
Standardize NixOS on using only SSL_CERT_FILE for the trusted SSL certificate store.
This commit is contained in:
commit
cacf3f6c1e
@ -32,6 +32,12 @@ stdenv.mkDerivation rec {
|
|||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed -e 's|/usr/bin|/no-such-path|g' -i.bak configure
|
sed -e 's|/usr/bin|/no-such-path|g' -i.bak configure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# make curl honor CURL_CA_BUNDLE & SSL_CERT_FILE
|
||||||
|
postConfigure = ''
|
||||||
|
echo '#define CURL_CA_BUNDLE (getenv("CURL_CA_BUNDLE") || getenv("SSL_CERT_FILE"))' >> lib/curl_config.h
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
( 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" )
|
||||||
|
@ -35,6 +35,11 @@ stdenv.mkDerivation rec {
|
|||||||
rm src/tool_hugehelp.c
|
rm src/tool_hugehelp.c
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# make curl honor CURL_CA_BUNDLE & SSL_CERT_FILE
|
||||||
|
postConfigure = ''
|
||||||
|
echo '#define CURL_CA_BUNDLE (getenv("CURL_CA_BUNDLE") || getenv("SSL_CERT_FILE"))' >> lib/curl_config.h
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
( 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" )
|
||||||
|
Loading…
Reference in New Issue
Block a user