-
Notifications
You must be signed in to change notification settings - Fork 237
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
source-repository-package doesn't work with nix 2.4 #1288
Comments
I'm running into this with 2.6.1 too. Is there any known workaround? |
I think there are some known bugs in 2.6.1 with restricted mode? Can't remember right now. |
I think it's related to some change of |
The problem we're running into with adding the Unfortunately this leaves us a bit stuck. The strange thing (to me) is that we have a |
To answer my own question: For stack, we do this haskell.nix/lib/stack-cache-generator.nix Line 98 in d420709
For cabal, we do this haskell.nix/lib/call-cabal-project-to-nix.nix Line 202 in d420709
So for stack we always use Something I didn't know is that you can specify a branch for The alternatives are to try and guess if the |
FWIW it looks like the expectation in cabal is that |
I'm also wondering if we could eliminate the use of The biggest downside is that this could significantly increase the time and space to make these clones. But this is already the behavior of cabal and stack, so devs are used to it. They end up being surprised and frustrated that haskell.nix doesn't do it this way and they have to specify |
Does |
Ah no, it doesn't. I had forgotten about that detail. |
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 am hoping that #1715 resolved this issue. Please reopen or open a new issue if I am mistaken. |
Building a cabal project with
source-repository-package
in nix 2.4 will fail to fetch the repo with something like:The text was updated successfully, but these errors were encountered: