commercialhaskell / commercialhaskell/stack
Nix: depend on system libraries automatically
Open
component: nix
type: enhancement
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
[cabal2nix](https://github.com/NixOS/cabal2nix/blob/master/src/Distribution/Nixpkgs/Haskell/FromCabal/Name.hs#L23) maintains a mapping between system libraries that packages that cabal files depend on and Nix packages to be installed.
This could be leveraged [also in stack](https://github.com/commercialhaskell/stack/blob/f8df0c9fa3fa3ef13dbde2a660d7d2de9e50e81e/src/Stack/Nix.hs#L86) to provide smooth Nix experience out of the box (no more need for setting `nix.packages` in `stack.yaml`).
Contributor guide
Assessment
This issue has not been assessed yet.