I have a fix for a broken Haskell packages. To complete it, I need to regenerate hackage-packages.nix. How is this done?
I’ve seen @peti’s video tutorial, but don’t see it there. The various web pages for hackage2nix seem to explain how to update that file, rather than regenerate from a few minor fixes.
I’m not following: I don’t want to update, I merely want to reflect a fix I made in configuration-hackage2nix.yaml. I need this to test the change I made in configuration-common.nix, which depends on an up-to-date hackage-packaqes.nix.
You want a way to regenerate it, using the same state of Hackage, so that the only changes are the things you’ve added/removed in configuration-hackage.yaml?
However, you don’t want to use the directions from https://www.youtube.com/watch?v=qX0mgtSm360 to update it, because then you get a bunch of unrelated package updates from Hackage?
I’m not sure if there is a way to easily regenerate it based on the old state of Hackage.
I’d suggest looking through the hackage2nix source code to see if you can find any command line arguments that may be relevant: