forked from mirrors/gomod2nix
add git to the go fetcher
This commit is contained in:
parent
b8c2216317
commit
10983293d0
2 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
, cacert
|
, cacert
|
||||||
, pkgs
|
, pkgs
|
||||||
, pkgsBuildBuild
|
, pkgsBuildBuild
|
||||||
|
, git
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
||||||
|
@ -56,7 +57,7 @@ let
|
||||||
name = "${baseNameOf goPackagePath}_${version}";
|
name = "${baseNameOf goPackagePath}_${version}";
|
||||||
builder = ./fetch.sh;
|
builder = ./fetch.sh;
|
||||||
inherit goPackagePath version;
|
inherit goPackagePath version;
|
||||||
nativeBuildInputs = [ go jq ];
|
nativeBuildInputs = [ go jq git ];
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHashAlgo = null;
|
outputHashAlgo = null;
|
||||||
outputHash = hash;
|
outputHash = hash;
|
||||||
|
|
|
@ -2,6 +2,8 @@ source $stdenv/setup
|
||||||
|
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
|
|
||||||
|
git config --global http.sslCAInfo $SSL_CERT_FILE
|
||||||
|
|
||||||
# Call once first outside of subshell for better error reporting
|
# Call once first outside of subshell for better error reporting
|
||||||
go mod download "$goPackagePath@$version"
|
go mod download "$goPackagePath@$version"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue