-
Notifications
You must be signed in to change notification settings - Fork 248
stackProject: builtins.fetchGit to avoid manual sha256s and allow private repos #309
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
Comments
Should be just a matter of changing the call at https://github.com/input-output-hk/nix-tools/blob/47ab47199194990681d24afd725e3f0e942e4f3d/lib/Cabal2Nix.hs#L223 |
This alone wouldn't enable Again, that is unless I am missing something. If I am, please tell me as I would love for this to work! |
Oh nevermind, I see this is intended to work with the |
@roberth using |
Can anyone give some insight into why I'm unable to override the Is this because the
|
@angerman
It won't work if the So if I get it right, it should be a matter of extending the cache format to allow an optional path to the source at that version; no need to fetch it if you already have it. Or perhaps just change the stack yaml to use local paths. Or maybe something else. You're better at estimating which is better. |
Don't think this was fixed :) |
🤣 GitHub failed at parsing the fixes line. |
It looks like In practice, this means you still need the sha if you're building on hydra (since adding to (This always bites me: I keep being surprised that |
@michaelpj You can work around it with haskell.nix's |
Yes, but this issue is about avoiding those hashes :) I agree there's nothing |
I finally complained about it: NixOS/nix#3469 |
It seems like
stackProject
could support git packages without the user messing about with hashes. A nix expression could read thestack.yaml
and prefetch all git repos using the evaluation-timebuiltins.fetchGit
. This function only needs arev
and supports private repos.The text was updated successfully, but these errors were encountered: