fetchzip: remove write permissions for unpacked files

Fixes https://github.com/NixOS/nixpkgs/issues/38649
This commit is contained in:
MetaDark
2020-11-26 15:30:12 -05:00
committed by Kira Bruneau
parent ea84f9d409
commit 4a5c49363a
5 changed files with 7 additions and 9 deletions
@@ -355,9 +355,6 @@ rec {
url = "https://download.jboss.org/drools/release/${version}/droolsjbpm-tools-distribution-${version}.zip";
sha512 = "2qzc1iszqfrfnw8xip78n3kp6hlwrvrr708vlmdk7nv525xhs0ssjaxriqdhcr0s6jripmmazxivv3763rnk2bfkh31hmbnckpx4r3m";
extraPostFetch = ''
# work around https://github.com/NixOS/nixpkgs/issues/38649
chmod go-w $out;
# update site is a couple levels deep, alongside some other irrelevant stuff
cd $out;
find . -type f -not -path ./binaries/org.drools.updatesite/\* -exec rm {} \;