git.iko.soy/typeable/nixpkgs
on master help sign in
opencv3: 3.4.6 -> 3.4.7
commitc5592fabba85bc011763258ab804e0f063e0da8f authorOrivej Desh <orivej@gmx.fr> dateFri 26 Jul 2019, 23:46 (7 years ago) parentb36bed3
1 file changed+12−15
pkgs/development/libraries/opencv/3.x.nix+12−15
pkgs/development/libraries/opencv/3.x.nix+12−15
@@ -35,20 +35,20 @@
3535}:
3636
3737let
38− version = "3.4.6";
38+ version = "3.4.7";
3939
4040 src = fetchFromGitHub {
4141 owner = "opencv";
4242 repo = "opencv";
4343 rev = version;
44− sha256 = "1gf0rbgd5s13q46bdna0bqn4yz9rxfhvlhbp5ds9hs326q8zprg8";
44+ sha256 = "0r5rrcnqx2lsnr1ja5ij2chb7yk9kkamr4p0ik52sqxydwkv3z50";
4545 };
4646
4747 contribSrc = fetchFromGitHub {
4848 owner = "opencv";
4949 repo = "opencv_contrib";
5050 rev = version;
51− sha256 = "115qcq0k2wmvhxw5lyv14yrd8m6xq3qy0pdby90ml2yl1caymbfy";
51+ sha256 = "1ik6acsmgrx66awf19r2y3ijqvv9xg43gaphwszbiyi0jq3r43yw";
5252 };
5353
5454 # Contrib must be built in order to enable Tesseract support:
@@ -61,16 +61,16 @@ let
6161 src = fetchFromGitHub {
6262 owner = "opencv";
6363 repo = "opencv_3rdparty";
64− rev = "bdb7bb85f34a8cb0d35e40a81f58da431aa1557a";
65− sha256 = "1ys9mshfpm8iy8h4ml792gnqrq959dsrcv26axx14niivxyjbji8";
64+ rev = "32e315a5b106a7b89dbed51c28f8120a48b368b4";
65+ sha256 = "19w9f0r16072s59diqxsr5q6nmwyz9gnxjs49nglzhd66p3ddbkp";
6666 } + "/ippicv";
67− files = let name = platform : "ippicv_2017u3_${platform}_general_20180518.tgz"; in
67+ files = let name = platform : "ippicv_2019_${platform}_general_20180723.tgz"; in
6868 if stdenv.hostPlatform.system == "x86_64-linux" then
69− { ${name "lnx_intel64"} = "b7cc351267db2d34b9efa1cd22ff0572"; }
69+ { ${name "lnx_intel64"} = "c0bd78adb4156bbf552c1dfe90599607"; }
7070 else if stdenv.hostPlatform.system == "i686-linux" then
71− { ${name "lnx_ia32"} = "ea72de74dae3c604eb6348395366e78e"; }
71+ { ${name "lnx_ia32"} = "4f38432c30bfd6423164b7a24bbc98a0"; }
7272 else if stdenv.hostPlatform.system == "x86_64-darwin" then
73− { ${name "mac_intel64"} = "3ae52b9be0fe73dd45bc5e9429cd3732"; }
73+ { ${name "mac_intel64"} = "fe6b2bb75ae0e3f19ad3ae1a31dfa4a2"; }
7474 else
7575 throw "ICV is not available for this platform (or not yet supported by this package)";
7676 dst = ".cache/ippicv";
@@ -147,12 +147,6 @@ stdenv.mkDerivation rec {
147147 cp --no-preserve=mode -r "${contribSrc}/modules" "$NIX_BUILD_TOP/opencv_contrib"
148148 '';
149149
150− patches = lib.optional stdenv.isDarwin
151− (fetchpatch {
152− url = "https://github.com/opencv/opencv/commit/7621b91769098359e893e68ad474040ca7940fa1.patch";
153− sha256 = "12qb14yd5934ig61lzs4pg29gak9wjyhnj7nmfx5r213jj1a4m21";
154− });
155−
156150 # This prevents cmake from using libraries in impure paths (which
157151 # causes build failure on non NixOS)
158152 # Also, work around https://github.com/NixOS/nixpkgs/issues/26304 with
@@ -246,6 +240,9 @@ stdenv.mkDerivation rec {
246240 "-DBUILD_opencv_videoio=OFF"
247241 ] ++ lib.optionals enablePython [
248242 "-DOPENCV_SKIP_PYTHON_LOADER=ON"
243+ ] ++ lib.optional enableEigen [
244+ # Autodetection broken by https://github.com/opencv/opencv/pull/13337
245+ "-DEIGEN_INCLUDE_PATH=${eigen}/include/eigen3"
249246 ];
250247
251248 enableParallelBuilding = true;