git.iko.soy/typeable/cabal2nix
on master help sign in
fltkhs: fix build in post-processing

The necessary know-how was kindly provided in https://github.com/NixOS/nixpkgs/pull/50828.

commit210398918c9c82ea56db5c378fb7c5a318e36b59 authorPeter Simons <simons@cryp.to> dateWed 21 Nov 2018, 15:50 (8 years ago) parentfee185e
1 file changed+1
src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+1
src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+1
@@ -89,6 +89,7 @@ hooks =
8989 , ("dns", set testTarget "spec") -- don't execute tests that try to access the network
9090 , ("eventstore", over (metaSection . platforms) (Set.filter (\(Platform arch _) -> arch == X86_64)))
9191 , ("freenect < 1.2.1", over configureFlags (Set.union (Set.fromList ["--extra-include-dirs=${pkgs.freenect}/include/libfreenect", "--extra-lib-dirs=${pkgs.freenect}/lib"])))
92+ , ("fltkhs", set (libraryDepends . system . contains (pkg "fltk14")) True . set (libraryDepends . pkgconfig . contains (pkg "libGLU_combined")) True) -- TODO: fltk14 belongs into the *setup* dependencies.
9293 , ("gf", set phaseOverrides gfPhaseOverrides . set doCheck False)
9394 , ("gi-cairo", giCairoPhaseOverrides) -- https://github.com/haskell-gi/haskell-gi/issues/36
9495 , ("gi-gdk", set runHaddock True )