daml/Upgrading.md
Moritz Kiefer 66541f18d0
Upgrade to new Stackage snapshot (#941)
I also started an Upgrading.md document. I’ll add the documentation
for upgrading nixpkgs in a separate PR.
2019-05-06 15:45:31 +02:00

35 lines
687 B
Markdown

# How to upgrade packages in this repo
## Stackage
To update the Stackage snapshot you need to clone the hazel repository into a
separate directory:
```
$ git clone https://github.com/tweag/rules_haskell.git
```
Change into the hazel directory.
```
$ cd rules_haskell/hazel
```
Then execute the following command to update to the specified Stackage
snapshot, where `$PROJECT` points to the root of this repository:
(Requires `stack`)
```
$ Stackage.hs lts-12.4 "$PROJECT/hazel/packages.bzl"
```
On NixOS you may need to modify `Stackage.hs` to append the following flag to
the list of `stack` intrepreter flags: `--nix-packages zlib`.
This will take a while.
## Nixpkgs
TODO