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:
parent
f4fbda241d
commit
c0d39ba93a
|
@ -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";
|
||||
|
|
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 a new issue