on iko/ghcjs-patch-master help sign in
Update cache server in docs to cache.iog.io (#1481)
commitb1661f08e3d6337b11bf7152bc02e314a76cc557 authorHamish Mackenzie <Hamish.K.Mackenzie@gmail.com> dateTue 24 May 2022, 17:30 (4 years ago) parent0d71f9a
3 files changed+53−5
docs/tutorials/getting-started-flakes.md+25−1 docs/tutorials/getting-started-hix.md+25−1 docs/tutorials/getting-started.md+3−3
docs/tutorials/getting-started-flakes.md+25−1
@@ -22,7 +22,31 @@ You need to add the following sections to `/etc/nix/nix.conf` or, if you are a t
2222
2323```
2424trusted-public-keys = [...] hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= [...]
25−substituters = [...] https://hydra.iohk.io [...]
25+substituters = [...] https://cache.iog.io [...]
26+```
27+
28+If you're running NixOS, you need to add/update the following in your `/etc/nixos/configuration.nix` files instead.
29+
30+```
31+# Binary Cache for Haskell.nix
32+nix.settings.trusted-public-keys = [
33+ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
34+];
35+nix.settings.substituters = [
36+ "https://cache.iog.io"
37+];
38+```
39+
40+NixOS-21.11 and older use slightly different settings.
41+
42+```
43+# Binary Cache for Haskell.nix
44+nix.binaryCachePublicKeys = [
45+ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
46+];
47+nix.binaryCaches = [
48+ "https://cache.iog.io"
49+];
2650```
2751
2852This 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).
docs/tutorials/getting-started-hix.md+25−1
@@ -29,7 +29,31 @@ You need to add the following sections to `/etc/nix/nix.conf` or, if you are a t
2929
3030```
3131trusted-public-keys = [...] hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= [...]
32−substituters = [...] https://hydra.iohk.io [...]
32+substituters = [...] https://cache.iog.io [...]
33+```
34+
35+If you're running NixOS, you need to add/update the following in your `/etc/nixos/configuration.nix` files instead.
36+
37+```
38+# Binary Cache for Haskell.nix
39+nix.settings.trusted-public-keys = [
40+ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
41+];
42+nix.settings.substituters = [
43+ "https://cache.iog.io"
44+];
45+```
46+
47+NixOS-21.11 and older use slightly different settings.
48+
49+```
50+# Binary Cache for Haskell.nix
51+nix.binaryCachePublicKeys = [
52+ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
53+];
54+nix.binaryCaches = [
55+ "https://cache.iog.io"
56+];
3357```
3458
3559This 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).
docs/tutorials/getting-started.md+3−3
@@ -18,7 +18,7 @@ You need to add the following sections to `/etc/nix/nix.conf` or, if you are a t
1818
1919```
2020trusted-public-keys = [...] hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= [...]
21−substituters = [...] https://hydra.iohk.io [...]
21+substituters = [...] https://cache.iog.io [...]
2222```
2323
2424If you're running NixOS, you need to add/update the following in your `/etc/nixos/configuration.nix` files instead.
@@ -29,7 +29,7 @@ nix.settings.trusted-public-keys = [
2929 "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
3030];
3131nix.settings.substituters = [
32− "https://hydra.iohk.io"
32+ "https://cache.iog.io"
3333];
3434```
3535
@@ -41,7 +41,7 @@ nix.binaryCachePublicKeys = [
4141 "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
4242];
4343nix.binaryCaches = [
44− "https://hydra.iohk.io"
44+ "https://cache.iog.io"
4545];
4646```
4747