Add Nix flake#620
Open
lf- wants to merge 4 commits into
Open
Conversation
phadej
reviewed
Sep 22, 2022
| can use like so, once you've [installed the Nix package manager][nix-install]: | ||
|
|
||
| ``` | ||
| $ nix develop |
Collaborator
There was a problem hiding this comment.
This is not how I develop haskell-ci and I won't be able to help people.
phadej
requested changes
Sep 22, 2022
Collaborator
phadej
left a comment
There was a problem hiding this comment.
I don't use nix. I also know it so poorly, I cannot fix issues if these arises.
For me ghcup install ghc and cabal and then cabal build work. I don't see a value in bringing in Nix, I'm sorry.
|
Hi! Totally understand not merging this when you don't want to get into nix and need to keep it maintained. Just as a separate perspective, it might have helped me out to have this merged. Would have even fixed it if it were out of date. My problem is that the latest haskell-ci package on Hackage is wayyy out of date. So I need to essentially build this from source in order to use it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've added a Nix flake to allow running haskell-ci in one command from any
computer with Nix. I've tested this on an aarch64 Mac.
I've updated the README to match as well.
Care and feeding of nix flakes:
There's a lockfile at
flake.lockcontaining all the inputs including thenixpkgs set. The overrides I've put in the overlay are due to the stackage LTS
that nixpkgs is currently based on being slightly old. They will error on
evaluation if they become unnecessary following a lockfile change.
You can update the nixpkgs version like so: