on iko/ghcjs-patch-master help sign in
fix binary cache for nixos (#1448)

* fix binary cache for nixos * Update getting-started.md add nixos binary cache instruction for both <=21.11 and >21.11

commite4248b3f14e0dc449f1e8bb0d9a7344492c4a91e authorDaniel Goertzen <daniel.goertzen@gmail.com> dateThu 21 Apr 2022, 11:06 (4 years ago) parent9aed9c3
1 file changed+12
docs/tutorials/getting-started.md+12
docs/tutorials/getting-started.md+12
@@ -33,6 +33,18 @@ nix.settings.substituters = [
3333];
3434```
3535
36+NixOS-21.11 and older use slightly different settings.
37+
38+```
39+# Binary Cache for Haskell.nix
40+nix.binaryCachePublicKeys = [
41+ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
42+];
43+nix.binaryCaches = [
44+ "https://hydra.iohk.io"
45+];
46+```
47+
3648This can be tricky to get setup properly. If you're still having trouble getting cache hits, consult the corresponding [troubleshooting section](../troubleshooting.md#why-am-i-building-ghc).
3749
3850## Niv