git.iko.soy/typeable/cabal2nix
on master help sign in
PostProcess.hs: patch ncurses build
commit3394d3e194e023e1fbe1a1b19dce98dc1774c658 authorPeter Simons <simons@cryp.to> dateSat 21 Sep 2013, 10:22 (13 years ago) parent68ad48f
1 file changed+4
src/Cabal2Nix/PostProcess.hs+4
src/Cabal2Nix/PostProcess.hs+4
@@ -45,6 +45,7 @@ postProcess deriv@(MkDerivation {..})
4545 | pname == "llvm-general" = deriv { doCheck = False }
4646 | pname == "llvm-general-pure"= deriv { doCheck = False }
4747 | pname == "multiarg" = deriv { buildDepends = "utf8String":buildDepends }
48+ | pname == "ncurses" = deriv { phaseOverrides = ncursesPatchPhase }
4849 | pname == "OpenAL" = deriv { extraLibs = "openal":extraLibs }
4950 | pname == "OpenGL" = deriv { extraLibs = "mesa":"libX11":extraLibs }
5051 | pname == "pandoc" = deriv { buildDepends = "alex":"happy":buildDepends }
@@ -198,3 +199,6 @@ lhs2texPostInstall = unlines
198199 , " mkdir -p \"$out/nix-support\""
199200 , "'';"
200201 ]
202+
203+ncursesPatchPhase :: String
204+ncursesPatchPhase = "patchPhase = \"find . -type f -exec sed -i -e 's|ncursesw/||' {} \\\\;\";"