release.nix: update for display packages on 8.4

This commit is contained in:
Vaibhav Sagar 2019-06-09 13:01:10 -04:00
parent ff788216e8
commit 90c521f01c
2 changed files with 6 additions and 2 deletions

View File

@ -183,7 +183,7 @@ If you have the `nix` package manager installed, you can create an IHaskell
notebook environment with one command. For example:
```bash
$ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-18.09.tar.gz release-8.4.nix --arg packages "haskellPackages: [ haskellPackages.lens ]"
$ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz release-8.6.nix --arg packages "haskellPackages: [ haskellPackages.lens ]"
<result path>
$ <result path>/bin/ihaskell-notebook
```
@ -193,9 +193,11 @@ It might take a while the first time, but subsequent builds will be much faster.
The IHaskell display modules are not loaded by default and have to be specified as additional packages:
```bash
$ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-18.09.tar.gz release-8.4.nix --arg packages "haskellPackages: [ haskellPackages.ihaskell-blaze haskellPackages.ihaskell-charts ]"
$ NIXPKGS_ALLOW_BROKEN=1 nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz release-8.4.nix --arg packages "haskellPackages: [ haskellPackages.ihaskell-blaze haskellPackages.ihaskell-charts ]"
```
We use GHC 8.4 here because not all dependencies have been updated to support GHC 8.6 yet.
# Troubleshooting
## Where are my packages? (IHaskell + Stack)

View File

@ -51,6 +51,8 @@ let
inline-r = nixpkgs.haskell.lib.dontCheck super.inline-r;
static-canvas = nixpkgs.haskell.lib.doJailbreak super.static-canvas;
system-fileio = nixpkgs.haskell.lib.doJailbreak super.system-fileio;
Chart = nixpkgs.haskell.lib.doJailbreak super.Chart;
Chart-cairo = nixpkgs.haskell.lib.doJailbreak super.Chart-cairo;
} // displays self);
});
ihaskellEnv = haskellPackages.ghcWithPackages (self: [ self.ihaskell ] ++ packages self);