haskell.nix/test
Hamish Mackenzie 82bc945818
Fix ghc 9 windows cross compilation (#1450)
Fixes Windows cross compilation for GHC 9.0 and 9.2.

Updates wine to use the version that is included with the chosen Nixpkgs (it used to be pinned to an older version).

Moves the configuration of the GHC source into the GHC derivation.  This should make adding Hadrian support easier.

Propagates library dependences (not just pkgconfig ones) on windows so that any DLLs in those libraries can be copied for TH evaluation and to the `/bin` directory of executable components.

Adds gcc and mfcgthreads as library dependencies on Windows so that the DLLs they include will be found.

Use `$pkgsHostTarget` (instead of `ghc-pkg`) to find all the DLLs can copy them to the `/bin` directory of executable components.

Adds support for __int128_t and __uint128_t to language-c to fix aarch64-darwin builds.

Fixed reinstalling packages that come with patched versions in ghcjs.
2022-05-19 20:21:16 +12:00
..
buildable Add GHC 9.0.1 (#1032) 2021-03-28 21:03:20 +13:00
builder-haddock Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
c-ffi fix ghcjs (#1311) 2022-01-09 03:11:37 +13:00
cabal-22 Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
cabal-doctests niv update nixpkgs-unstable and add ghc 8.10.5 (#1121) 2021-06-15 19:50:45 +12:00
cabal-hpack Use pkgs.lib instead of stdenv.lib (#1031) 2021-02-11 01:07:16 +13:00
cabal-simple Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
cabal-simple-debug Add ghc 9.2.2 (#1394) 2022-03-08 14:34:04 +13:00
cabal-simple-prof Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
cabal-source-repo Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
cabal-source-repo-comments Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
cabal-sublib Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
call-cabal-project-to-nix Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
call-stack-to-nix Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
coverage Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
coverage-golden niv update nixpkgs-unstable and add ghc 8.10.5 (#1121) 2021-06-15 19:50:45 +12:00
coverage-no-libs Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
exe-dlls Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
exe-lib-dlls Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
exe-only Use pkgs.lib instead of stdenv.lib (#1031) 2021-02-11 01:07:16 +13:00
external-static-plugin Allow packages to specify external static plugins 2022-05-02 11:08:42 -04:00
extra-hackage Improve support for external Hackage repositories (#1370) 2022-02-18 00:42:11 +13:00
fully-static Flakify all inputs (#1180) 2021-08-06 15:54:39 +12:00
ghc-options Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
ghcjs-overlay Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
githash Add GHC 9.0.2 (#1338) 2022-01-09 03:10:05 +13:00
haskell-language-server Try to get hydra to build Plutus GHC 2022-04-26 07:23:03 -04:00
index-state Add ghc 9.2.2 (#1394) 2022-03-08 14:34:04 +13:00
project-flags Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
setup-deps Work around for packages in lts that do not install. (#1437) 2022-04-20 15:25:21 +12:00
sha256map Improve support for external Hackage repositories (#1370) 2022-02-18 00:42:11 +13:00
shell-for Add GHC 8.10.7 (#1220) 2021-09-01 22:43:31 +12:00
shell-for-setup-deps Add ghc 9.2.2 (#1394) 2022-03-08 14:34:04 +13:00
snapshots Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
stack-local-resolver Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
stack-local-resolver-subdir Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
stack-remote-resolver Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
stack-simple use Cabal 3.6.2.0 (#1328) 2022-01-04 17:53:33 +13:00
stack-source-repo Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
sublib-docs Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
th-dlls Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
with-packages Fix libnuma dependency in rts.conf (#1342) 2022-02-15 23:49:45 +13:00
default.nix Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00
README.md Add cross-compiled musl libc builds of tests (#157) 2019-07-02 18:25:40 +10:00
regen.nix Spelling, typo and whitespace fixes (#833) 2020-08-31 11:08:25 +12:00
tests.sh Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
unit.nix Avoid filtering repo to just 01-index.tar.gz file (#1432) 2022-04-14 02:35:37 +12:00
util.nix tests: Add more tests for "all" component merging 2019-02-07 09:39:12 +08:00

Haskell infrastructure test cases

To build the test cases, run from the test directory:

nix-build --no-out-link default.nix

To run all tests (includes impure tests), use the script:

./tests.sh

Generated code

If you change the test Cabal files or need to regenerate the code with nix-tools, then see regen.nix. Run it like this:

$(nix-build --no-out-link regen.nix)