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