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:
parent
ee627e07f1
commit
1c96e14174
1 changed files with 1 additions and 3 deletions
|
@ -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"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue