Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Nix flake #620

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add Nix flake #620

wants to merge 4 commits into from

Conversation

lf-
Copy link

@lf- lf- commented Sep 21, 2022

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.lock containing all the inputs including the
nixpkgs 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:

nix flake lock --update-input nixpkgs

can use like so, once you've [installed the Nix package manager][nix-install]:

```
$ nix develop
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not how I develop haskell-ci and I won't be able to help people.

Copy link
Collaborator

@phadej phadej left a comment

Choose a reason for hiding this comment

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

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants