Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Use new shellFor function to provide build env. #174

Merged
merged 2 commits into from
May 31, 2019
Merged

Conversation

jbgi
Copy link
Contributor

@jbgi jbgi commented May 31, 2019

Only build dependencies, allow pure stack build.
(followup on #83 (comment))

@jbgi jbgi requested review from erikd and ksaric as code owners May 31, 2019 08:02
 Only build dependencies, allow pure stack build.
Copy link
Contributor

@ksaric ksaric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why we can't have a single stack.nix? This "special case" handling is always an indication of some (hidden) complexity.

env = defaultNix.nix-tools.shellFor {
inherit withHoogle;
# env will provide the dependencies of cardano-shell
packages = ps: with ps; [ cardano-shell ];
Copy link
Contributor

@ksaric ksaric May 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have the stack coveralls package (stack-hpc-coveralls) dependency somewhere in the default package set? If not, it would be useful, since we could all have the same version and run the same thing.
#171 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do (defined in iohk-nix). I added it to the default nix-shell.

@jbgi
Copy link
Contributor Author

jbgi commented May 31, 2019

@ksaric I added stack-shell.nixto avoid the unneeded weight of launching hoogle when building with stack. Hoogle is enable by default in the normal nix-shell case.

Copy link
Contributor

@ksaric ksaric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, great, thanks, LGTM!

@ksaric ksaric merged commit b9f9ca5 into develop May 31, 2019
@ksaric ksaric deleted the use-shellFor branch May 31, 2019 10:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants