Skip to content

Commit e4248b3

Browse files
authored
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
1 parent 9aed9c3 commit e4248b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/tutorials/getting-started.md

+12
Original file line numberDiff line numberDiff line change
@@ -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+
3648
This 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

0 commit comments

Comments
 (0)