mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-08 19:49:12 +00:00
10 lines
245 B
Bash
10 lines
245 B
Bash
source $stdenv/setup
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
# Call once first outside of subshell for better error reporting
|
|
go mod download -x "$goPackagePath@$version"
|
|
|
|
dir=$(go mod download --json "$goPackagePath@$version" | jq -r .Dir)
|
|
|
|
cp -r $dir $out
|