https://github.com/nh2/stack-nix-caching-example
Example of how to use nix Haskell binary packages with stack
https://github.com/nh2/stack-nix-caching-example
Last synced: 10 months ago
JSON representation
Example of how to use nix Haskell binary packages with stack
- Host: GitHub
- URL: https://github.com/nh2/stack-nix-caching-example
- Owner: nh2
- Created: 2017-04-26T18:02:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T20:02:12.000Z (over 8 years ago)
- Last Synced: 2025-01-13T00:26:04.084Z (12 months ago)
- Language: Nix
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example of how to use nix binary packages with `stack`
[`nixpkgs`](https://github.com/NixOS/nixpkgs) builds Haskell packages as binary packages.
[`stack`](https://haskellstack.org) can use them to save lots of compilation time for dependencies.
You simply have to ensure that the Stackage LTS version in `stack.yaml` is the same as in the nixpkgs you use (see top of `default.nix`).
## Try it
Incremental build with stack:
```
stack --nix build
```
Full build with with stack inside nix-build, generating a nix package (last line of output):
```
nix-build
```