1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

Merge pull request #2989 from pwoolcoc/git-cacert-path

add OPENSSL_X509_CERT_FILE to the `git` command environment
This commit is contained in:
Austin Seipp 2014-06-18 16:09:22 -05:00
commit ae8e54c64b

View file

@ -82,6 +82,10 @@ stdenv.mkDerivation {
# gitweb.cgi, need to patch so that it's found # gitweb.cgi, need to patch so that it's found
sed -i -e "s|'compressor' => \['gzip'|'compressor' => ['${gzip}/bin/gzip'|" \ sed -i -e "s|'compressor' => \['gzip'|'compressor' => ['${gzip}/bin/gzip'|" \
$out/share/gitweb/gitweb.cgi $out/share/gitweb/gitweb.cgi
wrapProgram $out/bin/git \
--set GIT_SSL_CAINFO "\$OPENSSL_X509_CERT_FILE"
'' ''
+ (if svnSupport then + (if svnSupport then