Skip to content

remove explicit disabling of Nix in stack.yaml#4198

Merged
JordanMartinez merged 3 commits into
purescript:masterfrom
cdepillabout:patch-1
Nov 23, 2021
Merged

remove explicit disabling of Nix in stack.yaml#4198
JordanMartinez merged 3 commits into
purescript:masterfrom
cdepillabout:patch-1

Conversation

@cdepillabout

@cdepillabout cdepillabout commented Nov 5, 2021

Copy link
Copy Markdown
Contributor

Description of the change

The current stack.yaml in this repo explicitly disables using Nix for building.

In my experience, it is better to just remove the nix.enable: false line from stack.yaml, rather than explicitly disabling it.

With stack, Nix is "required" for building on NixOS. If you explicitly disable Nix support in stack.yaml, you won't be able to build on NixOS without using stack build --nix. It is a little annoying to have to remember to always pass --nix (even though this should basically be the default on NixOS).

For all other distros, stack defaults to not using Nix, so removing nix.enable: false shouldn't change anything.

The only people who may be negatively affected by this change are people who are running a non-NixOS Linux distro and have nix.enable: false in their ~/.stack/config.yaml and also rely on stack building PureScript without using Nix. I imagine this group of people is either small or non-existent.


Checklist:

  • Added a file to CHANGELOG.d for this PR (see CHANGELOG.d/README.md)
  • Added myself to CONTRIBUTORS.md (if this is my first contribution)
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@cdepillabout

Copy link
Copy Markdown
Contributor Author

I didn't add a Changelog entry (since I guess it is unlikely this will negatively affect anyone), but I could if necessary.

@JordanMartinez

Copy link
Copy Markdown
Contributor

Just to clarify, the issue here is that you have to currently run stack build --nix and by making this change, you now only need to run stack build?

@rhendric

rhendric commented Nov 6, 2021

Copy link
Copy Markdown
Member

Per #3435: @f-f, @coot, @paluh—any thoughts on this proposal?

@cdepillabout

cdepillabout commented Nov 6, 2021

Copy link
Copy Markdown
Contributor Author

Just to clarify, the issue here is that you have to currently run stack build --nix and by making this change, you now only need to run stack build?

@JordanMartinez Yes.

On NixOS, you currently have to run stack build --nix, but with this PR, you will only need to run stack build.

This shouldn't affect building PureScript on other Linux distros.

@coot

coot commented Nov 8, 2021

Copy link
Copy Markdown
Contributor

I don't use nix nor stack, just cabal-3.x :)

@f-f f-f left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, thank you for fixing this!

@JordanMartinez

Copy link
Copy Markdown
Contributor

The Windows build failed, so I restarted CI.

@JordanMartinez

Copy link
Copy Markdown
Contributor

@cdepillabout Please add a changelog entry for this, following the instructions listed in CHANGELOG.d/README.md.

@cdepillabout

Copy link
Copy Markdown
Contributor Author

@JordanMartinez Thanks, I just rebased and pushed a CHANGELOG entry.

@JordanMartinez JordanMartinez merged commit 18e3b14 into purescript:master Nov 23, 2021
@cdepillabout cdepillabout deleted the patch-1 branch November 23, 2021 07:45
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.

5 participants