fetchzip: recursively run chmod +w on the unpackDir

Fixes https://github.com/NixOS/nixpkgs/issues/136030
This commit is contained in:
Artturin 2021-09-08 03:58:18 +03:00
parent a2c2a38f70
commit 5c37214abb

View File

@ -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