Skip to content

Commit

Permalink
haskell-opencv: fix build and #47595
Browse files Browse the repository at this point in the history
The applied patch can be removed, when
LumiGuide/haskell-opencv@cd613e2
hits hackage and later nixpkgs.

Closes #50192.
Closes #47595.
  • Loading branch information
typetetris authored and peti committed Nov 13, 2018
1 parent 032d610 commit 5966c56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ self: super: {
# Fails for non-obvious reasons while attempting to use doctest.
search = dontCheck super.search;

# see https://github.com/LumiGuide/haskell-opencv/commit/cd613e200aa20887ded83256cf67d6903c207a60
opencv = dontCheck (appendPatch super.opencv ./patches/opencv-fix-116.patch);
opencv-extra = dontCheck (appendPatch super.opencv-extra ./patches/opencv-fix-116.patch);

# https://github.com/ekmett/structures/issues/3
structures = dontCheck super.structures;

Expand Down
11 changes: 11 additions & 0 deletions pkgs/development/haskell-modules/patches/opencv-fix-116.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff -ur opencv-0.0.2.1.bak/Setup.hs opencv-0.0.2.1/Setup.hs
--- opencv-0.0.2.1.bak/Setup.hs 2018-11-10 17:18:41.355731189 +0100
+++ opencv-0.0.2.1/Setup.hs 2018-11-10 17:18:56.901681162 +0100
@@ -3,6 +3,6 @@

main = do
args <- getArgs
- let args' | "configure" `elem` args = args ++ ["--with-gcc","c++", "--with-ld","c++"]
+ let args' | "configure" `elem` args = args ++ ["--with-gcc","c++"]
| otherwise = args
defaultMainArgs args'

0 comments on commit 5966c56

Please sign in to comment.