How to maintain a Haskell package?

You ended up figuring this out in

https://github.com/NixOS/nixpkgs/pull/202163

which was cherry-picked into

https://github.com/NixOS/nixpkgs/pull/202022

right? Did you still need help with this? Or is there some question you still have?