on iko/ghcjs-patch-master help sign in
(Re)Apply workaround for single-user sandbox perm issue (#794)
0a9d82dLennart Spitzner
overlays/ghc-packages.nix+2−1
@@ -33,6 +33,7 @@ let
33 }) files);
33 }) files);
34 in final.evalPackages.runCommand "${name}${ext}" {} ''
34 in final.evalPackages.runCommand "${name}${ext}" {} ''
35 cp -Lr ${links} $out
35 cp -Lr ${links} $out
36+ chmod -R +w $out
36 '';
37 '';
37
38
38 # Combine the all the boot package nix files for a given ghc
39 # Combine the all the boot package nix files for a given ghc
@@ -102,7 +103,7 @@ in rec {
102 if dir == "libraries/ghc-boot"
103 if dir == "libraries/ghc-boot"
103 then final.evalPackages.runCommand "ghc-boot-src" {} ''
104 then final.evalPackages.runCommand "ghc-boot-src" {} ''
104 cp -Lr ${value.passthru.configured-src}/${dir} $out
105 cp -Lr ${value.passthru.configured-src}/${dir} $out
105− chmod -R +w $out/GHC
106+ chmod -R +w $out
106 cp -Lr ${value.generated}/libraries/ghc-boot/dist-install/build/GHC/* $out/GHC
107 cp -Lr ${value.generated}/libraries/ghc-boot/dist-install/build/GHC/* $out/GHC
107 ''
108 ''
108 else if dir == "compiler"
109 else if dir == "compiler"