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.
* 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