cabal2nix: fix build with old versions of GHC