nixpkgs/pkgs
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
..
applications Merge pull request #125527 from toastal/himalaya-0.4.0 2021-06-06 17:40:05 +01:00
build-support Merge pull request #125804 from Mic92/build-fhs-userenv 2021-06-05 18:03:11 +02:00
common-updater
data all-cabal-hashes: 2021-06-02T14:32:36Z -> 2021-06-06T15:18:11Z 2021-06-08 12:50:04 +02:00
desktops epiphany: 40.1 -> 40.2 2021-06-06 11:38:27 +02:00
development haskell-generic-builder: allow passing flags to the test suite(s) 2021-06-09 15:09:00 +02:00
games Merge pull request #125837 from r-burns/stockfish 2021-06-06 09:10:10 +02:00
misc vim-utils: append customRC after plug / pathogen plugins are loaded 2021-06-06 16:25:11 +02:00
os-specific mwprocapture: 1.2.4177 -> 1.3.0.4236 (#125110) 2021-06-06 01:56:23 +02:00
pkgs-lib
servers matrix-appservice-discord: increase test timeout 2021-06-06 16:10:42 +02:00
shells nushell: 0.31.0 -> 0.32.0 2021-06-03 16:46:11 +05:30
stdenv Merge pull request #125494 from siraben/remove-stdenv-lib 2021-06-05 16:16:28 +02:00
test neovim: fix neovim.override (#124785) 2021-05-29 16:36:39 +02:00
tools Merge pull request #125746 from r-ryantm/auto-update/bacula 2021-06-06 17:14:53 +01:00
top-level Merge remote-tracking branch 'origin/master' into haskell-updates 2021-06-06 12:44:46 +02:00