git.iko.soy/typeable/cabal2nix
on master help sign in
Add post-process hook that adds extra libraries to X11.
commit6e3550e03b90a041ed33ec28e9086b2635bbc306 authorPeter Simons <simons@cryp.to> dateTue 18 Aug 2015, 21:31 (11 years ago) parentba630bd
1 file changed+1−5
src/Cabal2Nix/PostProcess.hs+1−5
src/Cabal2Nix/PostProcess.hs+1−5
@@ -42,6 +42,7 @@ hooks = over (mapped._1) (\str -> fromMaybe (error ("invalid constraint: " ++ sh
4242 , ("monad", set phaseOverrides xmonadPostInstall)
4343 , ("wxc", wxcHook)
4444 , ("wxcore", set (libraryDepends . pkgconfig . contains "wxGTK") True)
45+ , ("X11", over (libraryDepends . system) (Set.union (Set.fromList ["libXinerama","libXext","libXrender"])))
4546 ]
4647
4748gitAnnexHook :: Derivation -> Derivation
@@ -185,14 +186,9 @@ postProcess' deriv@(MkDerivation {..})
185186 | pname == "threadscope" = deriv { configureFlags = Set.insert "--ghc-options=-rtsopts" configureFlags }
186187 | pname == "vacuum" = deriv { extraLibs = Set.insert "ghc-paths" extraLibs }
187188 | pname == "wxcore" = deriv { extraLibs = Set.fromList ["wxGTK","mesa","libX11"] `Set.union` extraLibs }
188− | pname == "X11" && version >= Version [1,6] []
189− = deriv { extraLibs = Set.fromList ["libXinerama","libXext","libXrender"] `Set.union` extraLibs }
190− | pname == "X11" = deriv { extraLibs = Set.insert "libXinerama" (Set.insert "libXext" extraLibs) }
191189 | pname == "X11-xft" = deriv { extraLibs = Set.fromList ["pkgconfig","freetype","fontconfig"] `Set.union` extraLibs
192190 , configureFlags = Set.insert "--extra-include-dirs=${freetype}/include/freetype2" configureFlags
193191 }
194− | pname == "xmonad" = deriv { phaseOverrides = xmonadPostInstall }
195−
196192-- Unbreak packages during hackage2nix generation:
197193
198194 | pname == "hnetcdf" = deriv { testDepends = Set.delete "netcdf" testDepends }