@@ -78,7 +78,10 @@ testLibrary cabalFile = do
7878-- some temporary location that is empty.
7979--
8080-- * Run this test with different kinds of encodings.
81−
81+--
82+-- * Run tests with a different target OS, like Darwin. The packages "iconv",
83+-- "crypt-sha512", "gl" might be worthwhile for testing since their output
84+-- differs on Darwin.
8285
8386testExecutable :: FilePath -> FilePath -> TestTree
8487testExecutable exe cabalFile = do
@@ -89,7 +92,7 @@ testExecutable exe cabalFile = do
8992 (\ref new -> ["diff", "-u", ref, new])
9093 goldenFile
9194 nixFile
92− (callCommand (unwords ["env LANG=en_US.UTF-8", exe, "--sha256=deadbeef", "--compiler=ghc-8.2", "--", cabalFile, ">"++nixFile]))
95+ (callCommand (unwords ["env LANG=en_US.UTF-8", exe, "--sha256=deadbeef", "--system=x86_64-linux", "--compiler=ghc-8.2", "--", cabalFile, ">"++nixFile]))
9396
9497-------------------------------------------------------------------------------
9598-- * Helper functions