fetchgit: Handle https.

svn path=/nixpkgs/trunk/; revision=28857
This commit is contained in:
Nicolas Pierron 2011-08-28 16:03:14 +00:00
parent 353ec7a128
commit d528cba5b8
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{stdenv, git}:
{stdenv, git, cacert}:
{url, rev ? "HEAD", md5 ? "", sha256 ? "", leaveDotGit ? false }:
/* NOTE:
@ -35,6 +35,8 @@ stdenv.mkDerivation {
inherit url rev leaveDotGit;
GIT_SSL_CAINFO = "${cacert}/etc/ca-bundle.crt";
impureEnvVars = [
# We borrow these environment variables from the caller to allow
# easy proxy configuration. This is impure, but a fixed-output

View file

@ -261,7 +261,7 @@ let
};
fetchgit = import ../build-support/fetchgit {
inherit stdenv git;
inherit stdenv git cacert;
};
fetchgitrevision = import ../build-support/fetchgitrevision runCommand git;