git.iko.soy/typeable/cabal2nix
on master help sign in
Cabal2Nix/PostProcess.hs: add version-unlock patch for trifecta
commitb330d0400607075c14558355eeba9f2d5d82cb28 authorMathijs Kwik <mathijs@bluescreen303.nl> dateFri 4 Oct 2013, 09:15 (13 years ago) parent9891e60
1 file changed+11
src/Cabal2Nix/PostProcess.hs+11
src/Cabal2Nix/PostProcess.hs+11
@@ -60,6 +60,7 @@ postProcess deriv@(MkDerivation {..})
6060 | pname == "svgcairo" = deriv { extraLibs = "libc":extraLibs }
6161 | pname == "terminfo" = deriv { extraLibs = "ncurses":extraLibs }
6262 | pname == "threadscope" = deriv { configureFlags = "--ghc-options=-rtsopts":configureFlags }
63+ | pname == "trifecta" = deriv { phaseOverrides = trifectaPostPatch }
6364 | pname == "vacuum" = deriv { extraLibs = "ghcPaths":extraLibs }
6465 | pname == "wxc" = deriv { extraLibs = "wxGTK":"mesa":"libX11":extraLibs, phaseOverrides = wxcPostInstall }
6566 | pname == "wxcore" = deriv { extraLibs = "wxGTK":"mesa":"libX11":extraLibs }
@@ -202,3 +203,13 @@ lhs2texPostInstall = unlines
202203
203204ncursesPatchPhase :: String
204205ncursesPatchPhase = "patchPhase = \"find . -type f -exec sed -i -e 's|ncursesw/||' {} \\\\;\";"
206+
207+trifectaPostPatch :: String
208+trifectaPostPatch = unlines
209+ [ "postPatch = ''"
210+ , " substituteInPlace trifecta.cabal \\"
211+ , " --replace \"blaze-html >= 0.5 && < 0.6,\" \"blaze-html >= 0.5 && < 0.7,\" \\"
212+ , " --replace \"hashable >= 1.2 && < 1.3,\" \"hashable >= 1.1 && < 1.3,\" \\"
213+ , " --replace \"fingertree >= 0.0.1 && < 0.1,\" \"fingertree >= 0.0.1 && < 0.2,\""
214+ , "'';"
215+ ]