mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
fetchgit: Handle https.
svn path=/nixpkgs/trunk/; revision=28857
This commit is contained in:
parent
353ec7a128
commit
d528cba5b8
|
@ -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
|
||||
|
|
|
@ -261,7 +261,7 @@ let
|
|||
};
|
||||
|
||||
fetchgit = import ../build-support/fetchgit {
|
||||
inherit stdenv git;
|
||||
inherit stdenv git cacert;
|
||||
};
|
||||
|
||||
fetchgitrevision = import ../build-support/fetchgitrevision runCommand git;
|
||||
|
|
Loading…
Reference in a new issue