Skip to content

Commit fae5c89

Browse files
committed
nix develop and nix build work
1 parent 9c3d54e commit fae5c89

File tree

4 files changed

+232
-180
lines changed

4 files changed

+232
-180
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ If you have the [Nix package manager](https://nixos.org/) installed, the easiest
2222
$ cabal v2-run -- hackage-server run --static-dir=datafiles/ --base-uri=http://127.0.0.1:8080
2323
hackage-server: Ready! Point your browser at http://127.0.0.1:8080
2424

25+
`flake.nix` is provided; it uses [`srid/haskell-flake`](https://github.com/srid/haskell-flake).
26+
27+
If you have [direnv](https://direnv.net/), `direnv allow` will load this `nix develop` shell automatically.
28+
29+
`nix build` will build a `hackage-server` executable in `result/`. The Hackage dependencies are provided by the inputs specified in `flake.nix`.
30+
2531
### Manually
2632

2733
You can also install dependencies manually via your operating system's package

flake.lock

Lines changed: 129 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)