Commit Graph

2 Commits

Author SHA1 Message Date
Hamish Mackenzie 79c2c631c3 Run the cross compiled tests on wine (#317)
Changes to the haskell.nix code to fix broken tests:

* Add missing `then` to `call-cabal-project-to-nix.nix`.

* Fix default `hsSourceDirs` so that `.` gets included for `.all` component if one of the components does not have a `hsSourceDir` set.

* Fix `haskellNixRoots` so it works when cross compiling to windows.

Improvements to the haskell.nix tests:

* Run haskell.nix tests of nixpkgs 19.03 and 19.09.

* Run haskell.nix tests cross compiled to Windows under Wine (when possible).

* Add nix used as IFD inputs as tests to ensure they are cached.

* Use `haskell-nix.cabal-install` instead of `nixpkgs.cabal-install` in tests.
2019-11-20 13:47:15 +13:00
Rodney Lorrimar e4a572b034 tests: Add test case with fully static build of pandoc (#256)
* tests: Add test case with fully static build of pandoc

It uses the musl libc. To try it, use:

   nix-build test/default.nix \
     --arg crossSystem '(import <nixpkgs/lib>).systems.examples.musl64' \
     -A fully-static.pandoc-gmp

This includes the GMP library (linked statically). To build one without GMP:

   nix-build test/default.nix \
     --arg crossSystem '(import <nixpkgs/lib>).systems.examples.musl64' \
     -A fully-static.pandoc-integer-simple

Unfortunately, the latter doesn't work (it says "ghc" command not found).

* fixup! tests: Add test case with fully static build of pandoc
2019-10-13 19:44:24 +08:00