Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mboes opened this issue Jun 19, 2016 · 0 comments
Open

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

mboes opened this issue Jun 19, 2016 · 0 comments

Comments

@mboes
Copy link
Contributor

mboes commented Jun 19, 2016

As a followup from #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

@mboes mboes added this to the P3: Optional milestone Jun 19, 2016
domenkozar added a commit to domenkozar/stack that referenced this issue Jun 9, 2017
Partially addresses commercialhaskell#2287, as git is used in stack internally
to fetch package index and LTS.
domenkozar added a commit to domenkozar/stack that referenced this issue Jun 9, 2017
Partially addresses commercialhaskell#2287, as git is used in stack internally
to fetch package index and LTS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant