Open funketh opened 3 years ago
I've also run into the issue with branches. For me, setting nix-sha256
in the stack.yaml file fixed this, eg:
- github: funketh/random-fu
commit: 2d38294582ba211df6a5a2b7f7a2c5e71038b0e7
# nix-sha256: shagoeshere
After that it was happy to fetch from non HEAD branches
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I was using haskell.nix via flakes and it doesn't seem to accept commit tags from other branches than head which stack would accept.
I think this is caused by not using
allRefs = true
: https://github.com/NixOS/nix/pull/3814The second inconsistency I encountered was that stack/pantry accepts tags pointing at forks that aren't merged yet (but have a PR). When using haskell.nix I'm required to always use the URL of the fork.
I would have assumed that haskell.nix accepts the exact same set of package specifications that stack does but I'm guessing these inconsistencies are caused by haskell.nix using the builtin nix tools instead of stack or pantry itself.
Disclaimer: I encountered these issues late at night yesterday and didn't try to reproduce them yet but here are the excerpts in question that didn't work for me:
I had to change them to this: