git.iko.soy/typeable/cabal2nix
on master help sign in
Merge pull request #178 from k0001/gf
34b8b9bPeter Simons
src/Cabal2Nix/PostProcess.hs+16
@@ -51,6 +51,8 @@ postProcess' deriv@(MkDerivation {..})
51 | pname == "gtk2hs-buildtools"= deriv { buildDepends = Set.insert "hashtables" buildDepends }
51 | pname == "gtk2hs-buildtools"= deriv { buildDepends = Set.insert "hashtables" buildDepends }
52 | pname == "haddock" && version < Version [2,14] []
52 | pname == "haddock" && version < Version [2,14] []
53 = deriv { buildTools = Set.insert "alex" (Set.insert "happy" buildTools) }
53 = deriv { buildTools = Set.insert "alex" (Set.insert "happy" buildTools) }
54+ | pname == "gf" = deriv { phaseOverrides = gfPhaseOverrides
55+ , doCheck = False }
54 | pname == "GlomeVec" = deriv { buildTools = Set.insert "llvm" buildTools }
56 | pname == "GlomeVec" = deriv { buildTools = Set.insert "llvm" buildTools }
55 | pname == "haddock" = deriv { phaseOverrides = haddockPreCheck }
57 | pname == "haddock" = deriv { phaseOverrides = haddockPreCheck }
56 | pname == "happy" = deriv { buildTools = Set.insert "perl" buildTools }
58 | pname == "happy" = deriv { buildTools = Set.insert "perl" buildTools }
@@ -242,3 +244,17 @@ ghcParserPatchPhase = unlines
242 , " substituteInPlace build-parser.sh --replace \"/bin/bash\" \"$SHELL\""
244 , " substituteInPlace build-parser.sh --replace \"/bin/bash\" \"$SHELL\""
243 , "'';"
245 , "'';"
244 ]
246 ]
247+
248+gfPhaseOverrides :: String
249+gfPhaseOverrides = unlines
250+ [ "postPatch = ''"
251+ , " sed -i \"s|\\\"-s\\\"|\\\"\\\"|\" ./Setup.hs"
252+ -- Disable silent compilation. Compiling takes long, it is best to see some
253+ -- output, otherwise it looks like the build step has stalled.
254+ , " sed -i \"s|numJobs (bf bi)++||\" ./Setup.hs"
255+ -- Parallel compilation fails. Disable it.
256+ , "'';"
257+ , "preBuild = ''export LD_LIBRARY_PATH=`pwd`/dist/build:$LD_LIBRARY_PATH'';"
258+ -- The build step itself, after having built the library, needs to be able
259+ -- to find the library it just built in order to compile grammar files.
260+ ]
src/hackage2nix.hs−1
@@ -1404,7 +1404,6 @@ defaultConfiguration = Configuration
1404 , "GeomPredicates-SSE"
1404 , "GeomPredicates-SSE"
1405 , "getemx"
1405 , "getemx"
1406 , "getflag"
1406 , "getflag"
1407− , "gf"
1408 , "ggtsTC"
1407 , "ggtsTC"
1409 , "ghc-dup"
1408 , "ghc-dup"
1410 , "ghc-events-analyze"
1409 , "ghc-events-analyze"