1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

haskell-singletons: fix tests for darwin

This commit is contained in:
John Wiegley 2014-05-29 07:28:13 +00:00
parent f4fbda241d
commit c0d39ba93a
2 changed files with 13 additions and 0 deletions

View file

@ -9,6 +9,7 @@ cabal.mkDerivation (self: {
buildDepends = [ mtl thDesugar ];
testDepends = [ Cabal constraints filepath tasty tastyGolden ];
noHaddock = true;
patches = self.stdenv.lib.optional self.stdenv.isDarwin ./test.patch;
meta = {
homepage = "http://www.cis.upenn.edu/~eir/packages/singletons";
description = "A framework for generating singleton types";

View file

@ -0,0 +1,12 @@
--- a/tests/SingletonsTestSuiteUtils.hs
+++ b/tests/SingletonsTestSuiteUtils.hs
@@ -201,7 +201,7 @@ testCompileAndDumpGroup testDir tests =
filterWithSed :: FilePath -> IO ()
filterWithSed file = runProcessWithOpts CreatePipe "sed"
#ifdef darwin_HOST_OS
- [ "-i", "''"
+ [ "-i"
#else
[ "-i"
#endif