chore(nix/fetchGoModule): don't move downloaded file

unzip(1) doesn't care about the extension, unlike the unpackFile hook.

Change-Id: Ia9d0e17c4b343ee5d32350329eb6267b9dc35605
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1641
Tested-by: BuildkiteCI
Reviewed-by: kanepyork <rikingcoding@gmail.com>
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
edef 2020-08-04 15:12:14 +00:00 committed by edef
parent ee627e07f1
commit 1c96e14174

View file

@ -25,10 +25,8 @@ pkgs.fetchurl {
postFetch = ''
unpackDir="$TMPDIR/unpack"
mkdir "$unpackDir"
cd "$unpackDir"
mv "$downloadedFile" "$TMPDIR/src.zip"
${pkgs.unzip}/bin/unzip "$TMPDIR/src.zip" -d "$unpackDir"
${pkgs.unzip}/bin/unzip "$downloadedFile" -d "$unpackDir"
mv "$unpackDir/${path}@v${version}" "$out"
'';
}