guichet/nix/builder/fetch.sh
Quentin Dufour c395880165
All checks were successful
continuous-integration/drone/push Build is passing
Compile with Nix
2022-07-19 11:56:35 +02:00

13 lines
307 B
Bash

source $stdenv/setup
export HOME=$(mktemp -d)
# Call once first outside of subshell for better error reporting
go mod download "$goPackagePath@$version"
dir=$(go mod download --json "$goPackagePath@$version" | jq -r .Dir)
chmod -R +w $dir
find $dir -iname ".ds_store" | xargs -r rm -rf
cp -r $dir $out