generated | ||
nixpkgsForGhc | ||
overrides | ||
.gitattributes | ||
.gitignore | ||
default.nix | ||
Design.org | ||
nixpkgs.nix | ||
Readme.org | ||
shell.nix | ||
update.hs |
Haskell IDE Engine Nix builds for all GHC versions
This repository provides Nix builds for Haskell IDE Engine (HIE) for all supported GHC versions. It is intended to be a successor to hie-nix.
Installation
Cached builds
If you wish to use cached builds, configure the all-hies
cachix cache with these instructions, or if you have cachix installed already:
$ cachix use all-hies
NixOS installation
Add this to the start of your configuration.nix
:
let
all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};
in
{
# ...
}
Then depending on your needs, add the versions you need to `environment.systemPackages`.
For the latest supported GHC version only (which is 8.6.4 right now):
{
environment.systemPackages = [ all-hies.latest ];
}
For a specific version of GHC (warning: If you need multiple versions, use the approach after this one instead):
{
environment.systemPackages = [ all-hies.versions.ghc864 ];
}
For a specific set of GHC versions (note: The hie/hie-wrapper
binaries will both be a HIE wrapper that chooses the correct version out of the given ones):
{
environment.systemPackages = [
(all-hies.selection { selector = p: { inherit (p) ghc864 ghc863 ghc843; }; })
];
}
For all supported GHC versions (warning: requires ~20GB of space for all 9 versions):
{
environment.systemPackages = [
(all-hies.selection { selector = p: p; })
];
}
nix-env
installation
For the latest supported GHC version only (which is 8.6.4 right now):
$ nix-env -iA latest -f https://github.com/infinisil/all-hies/tarball/master
For a specific version of GHC (warning: If you need multiple versions, use the approach after this one instead):
$ nix-env -iA versions.ghc864 -f https://github.com/infinisil/all-hies/tarball/master
For a specific set of GHC versions (note: The hie/hie-wrapper
binaries will both be a HIE wrapper that chooses the correct version out of the given ones):
$ nix-env -iA selection --arg selector 'p: { inherit (p) ghc864 ghc863 ghc843; }' -f https://github.com/infinisil/all-hies/tarball/master
For all supported GHC versions (warning: requires ~20GB of space for all 9 versions):
$ nix-env -iA selection --arg selector 'p: p' -f https://github.com/infinisil/all-hies/tarball/master
Updating this repository
If a new stable HIE version has been released, the following commands can be used to update the repository with it and build all versions
$ ./update.hs
$ nix-build -A versions -k
This will take a long time, but both of these commands do a lot of intermediate caching and are idempotent, so they can be interrupted and resumed at any time.
If builds fail for some reason, the overrides
directory can be used to add GHC-specific Haskell overrides.
TODO
-
Add more useful version selection
- All versions with a lower bound, useful when you know you've updated everything to at least some version
- All versions with an upper bound, useful when you want to control when you need newer versions yourself
- All of the existing selections, but with a constraint to only use the latest patch version