commercialhaskell / commercialhaskell/stack

Nix: depend on system libraries automatically

Open
#2,943 0 comments 6 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.