Files
haskell.nix/docs/dev/nixpkgs-pin.md
T
Rodney Lorrimar b4b18edeec Docs improvements (#171)
- Dev note about nixpkgs pin
- More information about selecting a GHC version for cabal projects
- A little bit more information about cross compiling, but this is still incomplete.
2019-06-12 10:18:38 +10:00

763 B

Haskell.nix Nixpkgs Pin

Haskell.nix contains a Nixpkgs pin in nixpkgs/github.json. This is the version of Nixpkgs used for builds of nix-tools and running the tests.

Users should pass their own version of Nixpkgs to Haskell.nix, although things might not work for them if their Nixpkgs version is too different.

We aim to keep this pin somewhere on the channel of the NixOS latest stable release. That is currently 19.03. So:

nix-prefetch-git https://github.com/NixOS/nixpkgs-channels refs/heads/nixos-19.03

Keep the URL in github.json pointing at https://github.com/NixOS/nixpkgs. Case matters because the Hydra trusted URL whitelist is case-sensitive.