mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
Now that the defaultCompilerNixName is used to choose which GHC to use for tools we need to update haskellNixRoots to make sure the common tools wind up in the cache. To do this we add the compilerNixName as a dimension in ci.nix. This has the added bonus of ensuring the tests a run with the supported versions of ghc (not just the default one). haskellNixRoots is also updated to include the tools built with the defaultCompilerNixName (in particular cabal-install was not pinned and this was the likely cause of significant builds due to cache misses).
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)