One of my side quests at work is to add cabal2nix support for PRs so that you can run something like this:
$ cabal2nix https://github.com/andrewthad/country/pull/29
… and it does the right thing. @leftpaddotpy already implemented something like this internally and I'm trying to see if we can upstream it into cabal2nix