about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/fetchGoModule/default.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nix/fetchGoModule/default.nix b/nix/fetchGoModule/default.nix
index 4f0cdb4b78cb..84794bbc50c7 100644
--- a/nix/fetchGoModule/default.nix
+++ b/nix/fetchGoModule/default.nix
@@ -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"
   '';
 }