We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dacab03 commit c6e7fa3Copy full SHA for c6e7fa3
1 file changed
nix/overlay.nix
@@ -145,7 +145,16 @@ in
145
final.spago
146
prev.purescript
147
];
148
- buildPhase = "spago build";
+ buildPhase = ''
149
+ # mkSpagoDerivation places the registry cache at the Linux path
150
+ # ($HOME/.cache/spago-nodejs), but on macOS Spago looks at
151
+ # $HOME/Library/Caches/spago-nodejs. Symlink to fix.
152
+ if [ "$(uname)" = "Darwin" ] && [ -d "$HOME/.cache/spago-nodejs" ]; then
153
+ mkdir -p "$HOME/Library/Caches"
154
+ ln -s "$HOME/.cache/spago-nodejs" "$HOME/Library/Caches/spago-nodejs"
155
+ fi
156
+ spago build
157
+ '';
158
installPhase = "mkdir $out; cp -r * $out";
159
};
160
0 commit comments