diff options
author | Artturin <Artturin@artturin.com> | 2021-09-08 03:58:18 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2021-09-08 03:58:18 +0300 |
commit | 5c37214abb3e982261d220f809e98f52dd32b808 (patch) | |
tree | 47e65f735f61d733a5384e80990c52d98e2d3ab1 | |
parent | a2c2a38f70a1218a2a5403f4d250bb8fbd4fbf0d (diff) |
fetchzip: recursively run chmod +w on the unpackDir
Fixes https://github.com/NixOS/nixpkgs/issues/136030
-rw-r--r-- | pkgs/build-support/fetchzip/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchzip/default.nix b/pkgs/build-support/fetchzip/default.nix index b174c252fc0e1..af38537737eb7 100644 --- a/pkgs/build-support/fetchzip/default.nix +++ b/pkgs/build-support/fetchzip/default.nix @@ -40,6 +40,7 @@ in { renamed="$TMPDIR/${tmpFilename}" mv "$downloadedFile" "$renamed" unpackFile "$renamed" + chmod -R +w "$unpackDir" '' + (if stripRoot then '' if [ $(ls "$unpackDir" | wc -l) != 1 ]; then |