Merge pull request #63162 from basvandijk/opencv-3.4.6
opencv: 3.4.5 -> 3.4.6
This commit is contained in:
commit
bf5e3c24d0
@ -35,20 +35,20 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "3.4.5";
|
version = "3.4.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "opencv";
|
owner = "opencv";
|
||||||
repo = "opencv";
|
repo = "opencv";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0hz9316ys2qi0lx9dcbsk3mkn8cn08q12hc96p6zz2d4is6d5wsc";
|
sha256 = "1gf0rbgd5s13q46bdna0bqn4yz9rxfhvlhbp5ds9hs326q8zprg8";
|
||||||
};
|
};
|
||||||
|
|
||||||
contribSrc = fetchFromGitHub {
|
contribSrc = fetchFromGitHub {
|
||||||
owner = "opencv";
|
owner = "opencv";
|
||||||
repo = "opencv_contrib";
|
repo = "opencv_contrib";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1fw7qwgibiznqal2dg4alkw8hrrrpjc0jaicf2406604rjm2lx6h";
|
sha256 = "115qcq0k2wmvhxw5lyv14yrd8m6xq3qy0pdby90ml2yl1caymbfy";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Contrib must be built in order to enable Tesseract support:
|
# Contrib must be built in order to enable Tesseract support:
|
||||||
@ -147,6 +147,12 @@ stdenv.mkDerivation rec {
|
|||||||
cp --no-preserve=mode -r "${contribSrc}/modules" "$NIX_BUILD_TOP/opencv_contrib"
|
cp --no-preserve=mode -r "${contribSrc}/modules" "$NIX_BUILD_TOP/opencv_contrib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
patches = lib.optional stdenv.isDarwin
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/opencv/opencv/commit/7621b91769098359e893e68ad474040ca7940fa1.patch";
|
||||||
|
sha256 = "12qb14yd5934ig61lzs4pg29gak9wjyhnj7nmfx5r213jj1a4m21";
|
||||||
|
});
|
||||||
|
|
||||||
# This prevents cmake from using libraries in impure paths (which
|
# This prevents cmake from using libraries in impure paths (which
|
||||||
# causes build failure on non NixOS)
|
# causes build failure on non NixOS)
|
||||||
# Also, work around https://github.com/NixOS/nixpkgs/issues/26304 with
|
# Also, work around https://github.com/NixOS/nixpkgs/issues/26304 with
|
||||||
|
Loading…
x
Reference in New Issue
Block a user