on iko/ghcjs-patch-master help sign in
Add information about the binary cache to README.org (#300)
6e95ba5Toon Nolten
@@ -59,6 +59,15 @@ cabal new-build your-package-name
59cabal new-repl your-package-name:library:your-package-name
59cabal new-repl your-package-name:library:your-package-name
60#+end_src
60#+end_src
61
61
62+** Cache
63+
64+CI pushes to [[https://cachix.org][cachix]] so you can benefit from the cache
65+if you pin a combination of =haskell.nix= and =nixpkgs= built by CI.
66+
67+You'll need to configure the [[nix-tools cachix][https://nix-tools.cachix.org]]
68+as a =substituter= for =nix= and add the public key found at the url to
69+=trusted-public-keys=.
70+
62** Related repos
71** Related repos
63
72
64The =haskell.nix= repository contains the runtime system for building
73The =haskell.nix= repository contains the runtime system for building
docs/user-guide.md+8
@@ -71,6 +71,14 @@ cd haskell.nix
71nix build -f . haskell-nix.nix-tools --out-link nt
71nix build -f . haskell-nix.nix-tools --out-link nt
72```
72```
73
73
74+## Setting up the Cachix binary cache
75+
76+CI pushes to [cachix](https://cachix.org) so you can benefit from the cache if
77+you pin a combination of `haskell.nix` and `nixpkgs` built by CI. You'll need
78+to configure the [nix-tools cachix](https://nix-tools.cachix.org) as a
79+`substituter` for `nix` and add the public key found at the url to
80+`trusted-public-keys`.
81+
74## Using [Haskell.nix][] with your project
82## Using [Haskell.nix][] with your project
75
83
76The easiest way to get a hold of [Haskell.nix][] is with
84The easiest way to get a hold of [Haskell.nix][] is with