haskell-singletons: fix tests for darwin
This commit is contained in:
parent
f4fbda241d
commit
c0d39ba93a
@ -9,6 +9,7 @@ cabal.mkDerivation (self: {
|
|||||||
buildDepends = [ mtl thDesugar ];
|
buildDepends = [ mtl thDesugar ];
|
||||||
testDepends = [ Cabal constraints filepath tasty tastyGolden ];
|
testDepends = [ Cabal constraints filepath tasty tastyGolden ];
|
||||||
noHaddock = true;
|
noHaddock = true;
|
||||||
|
patches = self.stdenv.lib.optional self.stdenv.isDarwin ./test.patch;
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.cis.upenn.edu/~eir/packages/singletons";
|
homepage = "http://www.cis.upenn.edu/~eir/packages/singletons";
|
||||||
description = "A framework for generating singleton types";
|
description = "A framework for generating singleton types";
|
||||||
|
12
pkgs/development/libraries/haskell/singletons/test.patch
Normal file
12
pkgs/development/libraries/haskell/singletons/test.patch
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user