mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
Fixes #672 by using the first index-state that is > than desired index state. It also passes `--index-state` to `cabal v2-cconfigre` to make sure it cabal uses only the packages in the hackage file that are before the specified date. Fixes #540 by returning the `index-state` used back out of `cabalProject` in the same way `plan-nix` is returned.
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)