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
Add callCabal2Nix to haskell packages #22191
Conversation
That function seems somewhat inferior to the |
It's used to call packages that aren't on Hackage. For example, pulling something from github and using cabal2nix on it. I use it in the default.nix of my projects so that I don't have to keep manually doing cabal2nix on my cabal file. |
@peti I think you're right. I could copy |
Re-factoring it to offer a more powerful API (i.e. one that can process local files) seems like the better solution to me.
|
@peti Updated. What do you think of this? |
Yes, that patch looks fine! One minor nitpick: other functions use the spelling |
@peti I noticed that myself. I'll change it. |
Done. |
Merged to |
This is long overdue. I see it everywhere in people's source code but it's not in nixpkgs (yet). Ref #19958.
I'm sure there all sorts of ways to improve this to make it suitable for inclusion in nixpkgs. But I wanted to get the ball rolling.