commercialhaskell / commercialhaskell/stack

Nix: warn when pkg-config or git not present in nix-shell

Open
#2,287 0 comments 0 reactions 0 assignees View on GitHub
component: nix
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

As a followup from https://github.com/commercialhaskell/stack/issues/2089, we should be helpful to the user and suggest fixes whenever we can. In particular, it's confusing that a `stack exec` command might fail because `git`, `pkg-config` or some other tool is not present, when it's most likely installed in the user's host environment.

In particular, if `--nix` is passed an the `stack` subprocess fails to find the git command, Stack should suggest adding it to the buildInputs. Likewise for `pkg-config`. There's really not much else that Stack would need for building that isn't app specific.

cc @YPares @rrnewton

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.