-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
callCabal2nix: Passthru deriver #44356
callCabal2nix: Passthru deriver #44356
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I occasionally need this myself. So I'm +1.
Seems to work:
|
@ryantm agree to merge this? |
Is |
Good point. I wonder if we shouldn't name it: |
That's not true. It evaluates to a directory whose only contents are a |
Oh you're right of course. I got confused by my own example above. Then I agree |
I also like |
f077585
to
08b7669
Compare
Alright. I've changed it. Anything else before merging? |
Thank you! |
Motivation for this change
When using callCabal2nix or callHackage, it is often useful to debug a failure by inspecting the Nix expression generated by cabal2nix. This can be accessed via this deriver field.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)/cc @shlevy