Run cabal2nix check phase only with GHC 7.8.x or later.