mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
For ghc 9.0.2 Haskell.nix will use the `stm`and `filepath` source that came with `ghc` when the version desired matches. This is because 9.0.2 shipped with packages that differ from the same version in hackage. `reinstallableLibGhc` is fixed for GHC 8.10 and above. Rather than including a patch file this works by: * Setting the `subDir` to the `compiler` directory when building. That way relative paths to other parts of the `ghc` source tree (outside the `compiler` directory) still work. * Files that are needed, but generated when `ghc` builds are added from the `generated` output of the ghc derivation. `nonReinstallablePkgs` is now sorted and deduplicated before it is used (this reduces the chance of rebuilds when the list is refactored). |
||
---|---|---|
.. | ||
buildable | ||
builder-haddock | ||
c-ffi | ||
cabal-22 | ||
cabal-doctests | ||
cabal-hpack | ||
cabal-simple | ||
cabal-simple-debug | ||
cabal-simple-prof | ||
cabal-source-repo | ||
cabal-source-repo-comments | ||
cabal-sublib | ||
call-cabal-project-to-nix | ||
call-stack-to-nix | ||
coverage | ||
coverage-golden | ||
coverage-no-libs | ||
exe-only | ||
extra-hackage | ||
fully-static | ||
ghc-options | ||
ghcjs-overlay | ||
githash | ||
haskell-language-server | ||
index-state | ||
project-flags | ||
setup-deps | ||
sha256map | ||
shell-for | ||
shell-for-setup-deps | ||
snapshots | ||
stack-local-resolver | ||
stack-local-resolver-subdir | ||
stack-remote-resolver | ||
stack-simple | ||
stack-source-repo | ||
sublib-docs | ||
th-dlls | ||
with-packages | ||
default.nix | ||
README.md | ||
regen.nix | ||
tests.sh | ||
unit.nix | ||
util.nix |
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)