-
Notifications
You must be signed in to change notification settings - Fork 698
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
Update haskell packages to launch nix-shell in CONTRIBUTING.md #10221
Conversation
The |
Sorry, I couldn't help but think how would getting an arbitrary package from hackage is going to fix this? Could you elaborate further? |
The Fourmolu versions in Nix won't work, as @ulysses4ever told you. You must install the older one somehow. |
@ulysses4ever What do you think about adding a |
There are varying opinions among the active Cabal maintainers towards how much nix-related stuff could be added to the Cabal repository. I'm (apparently) in minority supporting some lightweight nix instrumentation but provided there's a smoke test for that in our CI. Most of the devs, though, seem to reject anything Nix-related in the repo, see this thread for more context #8753 (I'm honestly stunned that any nix stuff was allowed in the CONTRIBUTING.md at all) |
I think there's a difference between "here's some tips from Nix users on how to contribute if you use Nix", and providing (hence implying support, when we have none because none of us use Nix) Nix-related resources in our build tree ( xmonad has some Nix-related things in the tree, but they were accepted with the understanding that someone must support them or they will be jettisoned. |
I maintain three local machines and one server that run NixOS. So, I very much use nix. I don't use nix for cabal development. Adding a shell.nix as suggested above would make my life a little easier (but not much). In return, I'm happy to oversee the proposed CI job. For something simple, along the lines of the SO referenced above, it will require very low maintenance, I think. But I agree that it's a different level of support requiring some discussion. |
The simplest way forward for this particular issue may be to remove We could also reference https://github.com/yvan-sraka/cabal.nix but it looks a little lonely (updated 9 months ago). |
6b6a509
to
859bb62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me!
@yvan-sraka Anything you can do on your cabal.nix setup? |
90c12e5
to
3f90a22
Compare
@fgaz @Kleidukos you approved the PR that added the initial version of these |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that I'm qualified to review Nix stuff.
I took the liberty to apply the label. If no updates come in two days, this will be auto-merged by the bot. |
And thanks Brandon! |
CONTRIBUTING.md
Outdated
> ``` | ||
> One dependency that we left out in the above command is `haskellPackages.formolu_0_12_0_0` which would need to be installed manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use fourmolu 0.14.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so:
cabal/.github/workflows/format.yml
Line 15 in 72e5439
version: "0.12.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well-spotted, I was under a false impression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taimoorzaeem nevermind then, apologies for the confusion!
7a435f4
to
d02cf74
Compare
d778a07
to
0cdec7e
Compare
0cdec7e
to
ca4381e
Compare
ca4381e
to
e28e1f9
Compare
Running the given command in CONTRIBUTING.md, raises the following errors:
This seemed like a simple fix which is updating these packages with the new package names. Hence the PR. Please review and merge.