git.iko.soy/typeable/cabal2nix
on master help sign in
opencv: configure more overrides as requested in https://github.com/NixOS/nixpkgs/commit/0335b93284b156291d77ff121ea51a01c07527c5#commitcomment-22632662
b2cb3cbPeter Simons
src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+7−1
@@ -94,7 +94,7 @@ hooks =
94 , ("mysql", set (libraryDepends . system . contains (pkg "mysql")) True)
94 , ("mysql", set (libraryDepends . system . contains (pkg "mysql")) True)
95 , ("network-attoparsec", set doCheck False) -- test suite requires network access
95 , ("network-attoparsec", set doCheck False) -- test suite requires network access
96 , ("numeric-qq", set doCheck False) -- test suite doesn't finish even after 1+ days
96 , ("numeric-qq", set doCheck False) -- test suite doesn't finish even after 1+ days
97− , ("opencv", set phaseOverrides "hardeningDisable = [ \"bindnow\" ];")
97+ , ("opencv", opencvOverrides)
98 , ("pandoc >= 1.16.0.2", set doCheck False) -- https://github.com/jgm/pandoc/issues/2709 and https://github.com/fpco/stackage/issues/1332
98 , ("pandoc >= 1.16.0.2", set doCheck False) -- https://github.com/jgm/pandoc/issues/2709 and https://github.com/fpco/stackage/issues/1332
99 , ("pandoc-citeproc", set doCheck False) -- https://github.com/jgm/pandoc-citeproc/issues/172
99 , ("pandoc-citeproc", set doCheck False) -- https://github.com/jgm/pandoc-citeproc/issues/172
100 , ("pandoc", set jailbreak False) -- jailbreak-cabal break the build
100 , ("pandoc", set jailbreak False) -- jailbreak-cabal break the build
@@ -289,3 +289,9 @@ hfseventsOverrides
289webkitgtk24xHook :: Derivation -> Derivation -- https://github.com/NixOS/cabal2nix/issues/145
289webkitgtk24xHook :: Derivation -> Derivation -- https://github.com/NixOS/cabal2nix/issues/145
290webkitgtk24xHook = set (libraryDepends . pkgconfig . contains (pkg "webkitgtk24x")) True
290webkitgtk24xHook = set (libraryDepends . pkgconfig . contains (pkg "webkitgtk24x")) True
291 . over (libraryDepends . pkgconfig) (Set.filter (\b -> view localName b /= "webkitgtk24x"))
291 . over (libraryDepends . pkgconfig) (Set.filter (\b -> view localName b /= "webkitgtk24x"))
292+
293+opencvOverrides :: Derivation -> Derivation
294+opencvOverrides = set phaseOverrides "hardeningDisable = [ \"bindnow\" ];"
295+ . over (libraryDepends . pkgconfig) (replace (pkg "opencv") (pkg "opencv3"))
296+ . set (configureFlags . contains "--with-gcc=${stdenv.cc}/bin/c++") True
297+ . set (configureFlags . contains "--with-ld=${stdenv.cc}/bin/c++") True