git.iko.soy/typeable/cabal2nix
on master help sign in
Build highlighting-kate with 'pcre-light' enabled.
ae2653aPeter Simons
src/Cabal2Nix/Flags.hs+1
@@ -13,6 +13,7 @@ configureCabalFlags (PackageIdentifier (PackageName name) _)
13 | name == "git-annex" = [enable "Assistant" , enable "Production"]
13 | name == "git-annex" = [enable "Assistant" , enable "Production"]
14 | name == "haskeline" = [enable "terminfo"]
14 | name == "haskeline" = [enable "terminfo"]
15 | name == "haste-compiler" = [enable "portable"]
15 | name == "haste-compiler" = [enable "portable"]
16+ | name == "highlighting-kate" = [enable "pcre-light"]
16 | name == "hslua" = [enable "system-lua"]
17 | name == "hslua" = [enable "system-lua"]
17 | name == "hxt" = [enable "network-uri"]
18 | name == "hxt" = [enable "network-uri"]
18 | name == "idris" = [enable "gmp", enable "ffi"]
19 | name == "idris" = [enable "gmp", enable "ffi"]
src/Cabal2Nix/PostProcess.hs−7
@@ -58,7 +58,6 @@ postProcess' deriv@(MkDerivation {..})
58 | pname == "haskell-src" = deriv { buildTools = Set.insert "happy" buildTools }
58 | pname == "haskell-src" = deriv { buildTools = Set.insert "happy" buildTools }
59 | pname == "haskell-src-meta" = deriv { buildDepends = Set.insert "uniplate" buildDepends }
59 | pname == "haskell-src-meta" = deriv { buildDepends = Set.insert "uniplate" buildDepends }
60 | pname == "HFuse" = deriv { phaseOverrides = hfusePreConfigure }
60 | pname == "HFuse" = deriv { phaseOverrides = hfusePreConfigure }
61− | pname == "highlighting-kate"= highlightingKatePostProcessing deriv
62 | pname == "hlibgit2" = deriv { buildTools = Set.insert "git" buildTools }
61 | pname == "hlibgit2" = deriv { buildTools = Set.insert "git" buildTools }
63 | pname == "HList" = deriv { buildTools = Set.insert "diffutils" buildTools }
62 | pname == "HList" = deriv { buildTools = Set.insert "diffutils" buildTools }
64 | pname == "hmatrix" = deriv { extraLibs = Set.insert "liblapack" (Set.insert "blas" (Set.filter (/= "lapack") extraLibs)) }
63 | pname == "hmatrix" = deriv { extraLibs = Set.insert "liblapack" (Set.insert "blas" (Set.filter (/= "lapack") extraLibs)) }
@@ -160,12 +159,6 @@ darcsInstallPostInstall = unlines
160 , "'';"
159 , "'';"
161 ]
160 ]
162
161
163−highlightingKatePostProcessing :: Derivation -> Derivation
164−highlightingKatePostProcessing deriv@(MkDerivation {..}) = deriv
165− { phaseOverrides = "prePatch = \"sed -i -e 's|regex-pcre-builtin >= .*|regex-pcre|' highlighting-kate.cabal\";"
166− , buildDepends = Set.insert "regex-pcre" (Set.delete "regex-pcre-builtin" buildDepends)
167− }
168−
169xmonadPostInstall :: String
162xmonadPostInstall :: String
170xmonadPostInstall = unlines
163xmonadPostInstall = unlines
171 [ "postInstall = ''"
164 [ "postInstall = ''"