nixpkgs/pkgs/development
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
..
androidndk-pkgs
arduino
beam-modules rebar3Relx: only link executables in $out/bin 2021-06-06 08:47:28 +09:00
bower-modules/generic
chez-modules
compilers Merge pull request #126205 from sternenseemann/ghc-linker-checks 2021-06-08 16:42:13 -04:00
coq-modules coqPackages.topology: init 2021-06-01 12:38:18 +02:00
dhall-modules
dotnet-modules
em-modules/generic
gnuradio-modules
go-modules buildGoModule/buildGoPackage: Introduce ldflags argument 2021-06-05 09:54:36 +10:00
go-packages buildGoModule/buildGoPackage: Introduce ldflags argument 2021-06-05 09:54:36 +10:00
guile-modules
haskell-modules haskell-generic-builder: allow passing flags to the test suite(s) 2021-06-09 15:09:00 +02:00
idris-modules
interpreters erlangR21: 21.3.8.23 -> 21.3.8.24 2021-06-06 17:31:47 +09:00
java-modules
libraries Merge pull request #125668 from thefloweringash/glibc-tool-confusion 2021-06-06 17:24:50 +01:00
lisp-modules
lua-modules treewide: Fix mysql alias deprecation breakage 2021-06-04 21:42:08 +02:00
misc
mobile
node-packages nodePackages.wavedrom-cli: init at 2.6.9 2021-06-02 10:35:29 +08:00
ocaml-modules ocamlPackages.ppx_gen_rec: 1.1.0 -> 2.0.0 2021-06-06 14:55:09 +02:00
octave-modules
perl-modules
pharo
php-packages Merge pull request #124817 from aanderse/php.packages.deployer 2021-06-06 00:30:39 +02:00
pure-modules
python-modules Merge pull request #125544 from mweinelt/python/clldutils 2021-06-06 01:54:36 +02:00
r-modules rPackages.hdf5r: add missing depedency on pkgs.hdf5 (#125549) 2021-06-06 02:12:22 +02:00
ruby-modules
tools Merge pull request #125100 from hurricanehrndz/fix/tree-sitter-on-darwin 2021-06-06 05:23:48 -05:00
web flyctl: 0.0.220 -> 0.0.222 2021-06-04 03:51:07 +00:00