3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/haskell-modules
sternenseemann 57ec1813ff haskell-generic-builder: allow passing flags to the test suite(s)
Every flag the generic builder receives via `testFlags` is passed via
`--test-option` [1] to `Setup.hs` which in turn passes them to the
underlying test suite binary. These wrapped options are added to
`checkFlagsArray` in `checkPhase`. This needs to be done in bash since
without structuredAttrs in nixpkgs so far, Nix arrays aren't properly
translated into bash arrays, so we'd have all sorts of quoting issues
when spaces are involved.

Re-using `checkFlags` and `checkFlagsArray` from standard stdenv
setup.sh also results in an additional feature: Using `overrideAttrs`
`checkFlags` and `checkFlagsArray` can additionally be overridden,
which allows passing extra flags to `Setup.hs` whithout being wrapped
with `--test-option`.

[1]: See also https://cabal.readthedocs.io/en/3.4/setup-commands.html?highlight=test-option#cmdoption-runhaskell-Setup.hs-test-test-option
     According to the cabal-install man page this also allows passing
     special variables which are substituted for other values
     depending on context.
2021-06-09 15:09:00 +02:00
..
configuration-hackage2nix haskellPackages: update list of transitively broken packages 2021-06-09 12:41:02 +02:00
patches haskellPackages.jsaddle-webkit2gtk: remove now unnecessary patch 2021-06-05 02:29:27 +02:00
cabal2nix-unstable.nix haskellPackages.cabal2nix-unstable: update to latest version from github 2021-05-28 10:47:40 +09:00
configuration-arm.nix haskellPackages.orbits: disable doctest on aarch64 2021-05-23 17:25:24 +02:00
configuration-common.nix haskell-generic-builder: allow passing flags to the test suite(s) 2021-06-09 15:09:00 +02:00
configuration-darwin.nix haskellPackages.hls-class-plugin: Disable tests on darwin 2021-05-25 13:00:46 +02:00
configuration-ghc-8.6.x.nix haskellPackages.llvmPackages: dontRecurseIntoAttrs 2021-06-04 11:36:24 +02:00
configuration-ghc-8.8.x.nix haskellPackages.llvmPackages: dontRecurseIntoAttrs 2021-06-04 11:36:24 +02:00
configuration-ghc-8.10.x.nix haskellPackages.llvmPackages: dontRecurseIntoAttrs 2021-06-04 11:36:24 +02:00
configuration-ghc-9.0.x.nix haskellPackages.llvmPackages: dontRecurseIntoAttrs 2021-06-04 11:36:24 +02:00
configuration-ghc-head.nix haskellPackages.llvmPackages: dontRecurseIntoAttrs 2021-06-04 11:36:24 +02:00
configuration-nix.nix haskellPackages.tophat: unbreak 2021-06-05 18:39:33 +02:00
configuration-tensorflow.nix tensorflow-haskell: Remove tensorflow-mnist 2020-06-05 21:58:24 +02:00
default.nix haskell.packages: move darwin-specific overrides into their own config 2021-05-08 19:56:05 +02:00
generic-builder.nix haskell-generic-builder: allow passing flags to the test suite(s) 2021-06-09 15:09:00 +02:00
generic-stack-builder.nix treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix 2021-01-19 01:16:25 -08:00
hackage-packages.nix haskellPackages: update list of transitively broken packages 2021-06-09 12:41:02 +02:00
HACKING.md haskell-updates: team workflow update link to matrix space 2021-05-30 21:55:55 +09:00
hoogle-local-wrapper.sh
hoogle.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
initial-packages.nix Consistently use 'lib' instead of 'stdenv.lib' in the Haskell infrastructure. 2021-01-22 20:34:21 +01:00
lib.nix haskell.lib.setBuildTargets: fix spelling in doc string 2021-05-02 13:35:08 +09:00
make-package-set.nix haskell: default name to "" when root isn't a path in developPackage 2021-05-08 18:22:54 +08:00
non-hackage-packages.nix haskellPackages.cabal2nix-unstable: rename from cabal2nix-latest 2021-05-04 13:38:46 +02:00
stack-hook.sh
with-packages-wrapper.nix ghcWithPackages: set withLLVM if hostPlatform is not x86_64 2021-05-03 10:42:52 +02:00