How to regenerate hackage-packages.nix?

I had the same need as you hence this PR that I believe make the process more discoverable init maintainers/scripts/update-hackage by teto · Pull Request #62105 · NixOS/nixpkgs · GitHub