mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
66541f18d0
I also started an Upgrading.md document. I’ll add the documentation for upgrading nixpkgs in a separate PR.
35 lines
687 B
Markdown
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
|