mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-17 09:57:27 +03:00
dfefba5be7
* This adds more logic for the cabalProjectToNix idf That is, something like this: ``` nix-build --expr 'with import ./. {}; callCabalProjectToNix { index-state = "2019-04-30T00:00:00Z"; src = /some/path; }' ``` should produce something that can be build with mkCabalProjectPkgSet. * Make sure the hackageTarball's store path doesn't change previously the fetchurl would produce a different store path each and every time as hackage's index is a moving target. With this impurity setup, we can ignore this. * Fix test * Proper name * Re-enable test * Allow to parameterize over the `system` for the test default.nix * Copy instead of link for ifds. This makes me really sad. |
||
---|---|---|
.. | ||
builder-haddock | ||
cabal-22 | ||
cabal-simple | ||
cabal-sublib | ||
call-cabal-project-to-nix | ||
callStackToNix | ||
stack-simple | ||
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 this 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)