on iko/ghcjs-patch-master help sign in
Fix callCabalProjectToNix when using nix sandboxes (#154)
b82a06cHamish Mackenzie
lib/cabalProjectToNix.nix+4
@@ -79,4 +79,8 @@ in
79 # todo: should we clean `src` to drop any .git, .nix, ... other irelevant files?
79 # todo: should we clean `src` to drop any .git, .nix, ... other irelevant files?
80 rsync -a "${src}/" "$out/"
80 rsync -a "${src}/" "$out/"
81 rsync -a ${plan}/ $out/
81 rsync -a ${plan}/ $out/
82+ # Rsync will have made $out read only and that can cause problems when
83+ # nix sandboxing is enabled (since it can prevent nix from moving the directory
84+ # out of the chroot sandbox).
85+ chmod +w $out
82 ''
86 ''