Skip to content

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.

@romanofski
Copy link

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.

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.

3 participants