buildLocalCabal: use new cabal2nix feature
Merge pull request #4583 from NixOS/buildLocalCabal-new-cabal2nix

buildLocalCabal: use new cabal2nix feature