Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix building stack projects with hix #1998

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

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Fix building stack projects with hix #1998

merged 1 commit into from
Jul 18, 2023

Conversation

hamishmack
Copy link
Collaborator

The default compiler-nix-name provided for hix projects conflicts with the one implied by the stack.yaml resolver.

Fixes #1997

The default compiler-nix-name provided for hix projects conflicts with the one implied by the `stack.yaml` `resolver`.

Fixes #1997
@hamishmack hamishmack requested a review from yvan-sraka July 13, 2023 04:42
@hamishmack hamishmack self-assigned this Jul 13, 2023
# Stack projects do not require a default as the `resolver` in the `stack.yaml`
# specifies one.
config = lib.mkIf (!config ? "stackYaml") {
compiler-nix-name = lib.mkDefault "ghc945";
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it be more straight forward to bump the priority of compiler-nix-name in the stack modules? So whatever stack.yaml says wins (perhaps still allowing user override)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That would be nicer, but compiler-nix-name is in the project level module. I think there is a compiler.nix-name in the other modules, but we don't currently use it to set the project level compiler-nix-name (only the other way around).

Is it ok if we merge this for now and improve it if we can in the refactoring of the modules?

Copy link
Member

Choose a reason for hiding this comment

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

Is it ok if we merge this for now and improve it if we can in the refactoring of the modules?

Sure, go head. Sorry for making you wait, I wrote that comment just as you opened the PR but I didn't realise I had "started a review" rather than "add a single comment". I'll approve now.

Copy link
Member

@andreabedini andreabedini left a comment

Choose a reason for hiding this comment

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

👍

@hamishmack hamishmack merged commit 75cae0a into master Jul 18, 2023
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.

error: attribute 'system-cxx-std-lib' missing
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.