Commit 9caa54fd authored by Vaibhav Sagar's avatar Vaibhav Sagar

README.md: update Nix instructions

parent 6e35724b
...@@ -245,7 +245,7 @@ If you have the `nix` package manager installed, you can create an IHaskell ...@@ -245,7 +245,7 @@ If you have the `nix` package manager installed, you can create an IHaskell
notebook environment with one command. For example: notebook environment with one command. For example:
```bash ```bash
$ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.09.tar.gz release.nix --argstr compiler ghc865 --arg packages "haskellPackages: [ haskellPackages.lens ]" $ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-20.03.tar.gz release.nix --argstr compiler ghc865 --arg packages "haskellPackages: [ haskellPackages.lens ]"
<result path> <result path>
$ <result path>/bin/ihaskell-notebook $ <result path>/bin/ihaskell-notebook
``` ```
...@@ -258,11 +258,9 @@ prebuilt artifacts. ...@@ -258,11 +258,9 @@ prebuilt artifacts.
The IHaskell display modules are not loaded by default and have to be specified as additional packages: The IHaskell display modules are not loaded by default and have to be specified as additional packages:
```bash ```bash
$ NIXPKGS_ALLOW_BROKEN=1 nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.09.tar.gz release.nix --argstr compiler ghc844 --arg packages "haskellPackages: [ haskellPackages.ihaskell-blaze haskellPackages.ihaskell-charts ]" $ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-20.03.tar.gz release.nix --argstr compiler ghc865 --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.
For more examples of using IHaskell with Nix, see https://github.com/vaibhavsagar/notebooks. For more examples of using IHaskell with Nix, see https://github.com/vaibhavsagar/notebooks.
# Troubleshooting # Troubleshooting
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment