From 88b5578a579ca7eefc8ac5507f9a5be3cc3684ca Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Mon, 16 Jun 2014 21:53:40 -0400 Subject: [PATCH] add OPENSSL_X509_CERT_FILE to the `git` command environment --- .../version-management/git-and-tools/git/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/version-management/git-and-tools/git/default.nix b/pkgs/applications/version-management/git-and-tools/git/default.nix index f95b5a493a65..ce1344906208 100644 --- a/pkgs/applications/version-management/git-and-tools/git/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git/default.nix @@ -82,6 +82,10 @@ stdenv.mkDerivation { # gitweb.cgi, need to patch so that it's found sed -i -e "s|'compressor' => \['gzip'|'compressor' => ['${gzip}/bin/gzip'|" \ $out/share/gitweb/gitweb.cgi + + wrapProgram $out/bin/git \ + --set GIT_SSL_CAINFO "\$OPENSSL_X509_CERT_FILE" + '' + (if svnSupport then