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

Respect defaults in shellFor (fixes #2306) #2322

Merged
merged 2 commits into from
Feb 18, 2025
Merged

Conversation

hamishmack
Copy link
Collaborator

shellFor has an argument allToolDeps that when set to true tells haskell.nix to include all the tool dependencies of all the packages in the shell. This does not work well for stackProject projects (since stackage includes a lot of packages). So it is disabled by default in modules/stack-project.nix.

This default is currently ignored if shellFor is called directly.

This change ensures that shellFor respects the defaults and any shell arguments passed to the project. As a result, project.shell and project.shellFor {} will now behave consistently.

`shellFor` has an argument `allToolDeps` that when set to `true` tells haskell.nix to include all the tool dependencies of all the packages in the shell.  This does not work well for `stackProject` projects (since stackage includes a lot of packages).  So it is disabled by default in `modules/stack-project.nix`.

This default is currently ignored if `shellFor` is called directly.

This change ensures that `shellFor` respects the defaults and any shell arguments passed to the project. As a result, `project.shell` and `project.shellFor {}` will now behave consistently.
@hamishmack hamishmack merged commit 8bed466 into master Feb 18, 2025
5251 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant