Skip to content

Commit

Permalink
nix develop and nix build work
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbecich committed Mar 13, 2023
1 parent 9c3d54e commit fae5c89
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 180 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ If you have the [Nix package manager](https://nixos.org/) installed, the easiest
$ cabal v2-run -- hackage-server run --static-dir=datafiles/ --base-uri=http://127.0.0.1:8080
hackage-server: Ready! Point your browser at http://127.0.0.1:8080

`flake.nix` is provided; it uses [`srid/haskell-flake`](https://github.com/srid/haskell-flake).

If you have [direnv](https://direnv.net/), `direnv allow` will load this `nix develop` shell automatically.

`nix build` will build a `hackage-server` executable in `result/`. The Hackage dependencies are provided by the inputs specified in `flake.nix`.

### Manually

You can also install dependencies manually via your operating system's package
Expand Down
148 changes: 129 additions & 19 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fae5c89

Please sign in to comment.