pkgs/build-support/cabal/default.nix: add support for running test suites via Cabal

Set 'doCheck = true' to enable building and running of the test suite.