summary refs log tree commit diff
path: root/pkgs/development/libraries/opencv
diff options
context:
space:
mode:
authorBas van Dijk <v.dijk.bas@gmail.com>2017-01-23 22:51:16 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2017-01-23 23:12:18 +0100
commitf2afe922f4bd1e1640226f53847385b6bb45e2f0 (patch)
tree5c5a487f0eb8bee4ab56497b1cc02d94c03d821f /pkgs/development/libraries/opencv
parenta9a5dad531012c1e09821c090394601977d6e316 (diff)
downloadnixpkgs-f2afe922f4bd1e1640226f53847385b6bb45e2f0.tar
nixpkgs-f2afe922f4bd1e1640226f53847385b6bb45e2f0.tar.gz
nixpkgs-f2afe922f4bd1e1640226f53847385b6bb45e2f0.tar.bz2
nixpkgs-f2afe922f4bd1e1640226f53847385b6bb45e2f0.tar.lz
nixpkgs-f2afe922f4bd1e1640226f53847385b6bb45e2f0.tar.xz
nixpkgs-f2afe922f4bd1e1640226f53847385b6bb45e2f0.tar.zst
nixpkgs-f2afe922f4bd1e1640226f53847385b6bb45e2f0.zip
opencv-3.1: make ippicv download URL consistent
with the URL defined in:

  https://github.com/opencv/opencv/blob/3.1.0/3rdparty/ippicv/downloader.cmake
Diffstat (limited to 'pkgs/development/libraries/opencv')
-rw-r--r--pkgs/development/libraries/opencv/3.x.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/opencv/3.x.nix b/pkgs/development/libraries/opencv/3.x.nix
index 831cb1ec67c..3882d6a6ca4 100644
--- a/pkgs/development/libraries/opencv/3.x.nix
+++ b/pkgs/development/libraries/opencv/3.x.nix
@@ -59,14 +59,20 @@ stdenv.mkDerivation rec {
     });
 
   preConfigure =
+    # By default ippicv gets downloaded by cmake each time opencv is build. See:
+    # https://github.com/opencv/opencv/blob/3.1.0/3rdparty/ippicv/downloader.cmake
+    # Fortunately cmake doesn't download ippicv if it's already there.
+    # So to prevent repeated downloads we store it in the nix store
+    # and create a symbolic link to it.
     let version  = "20151201";
         md5      = "808b791a6eac9ed78d32a7666804320e";
         sha256   = "1nph0w0pdcxwhdb5lxkb8whpwd9ylvwl97hn0k425amg80z86cs3";
+        rev      = "81a676001ca8075ada498583e4166079e5744668";
         platform = if stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux" then "linux"
                    else throw "ICV is not available for this platform (or not yet supported by this package)";
         name = "ippicv_${platform}_${version}.tgz";
         ippicv = fetchurl {
-          url = "https://github.com/Itseez/opencv_3rdparty/raw/ippicv/master_${version}/ippicv/${name}";
+          url = "https://raw.githubusercontent.com/opencv/opencv_3rdparty/${rev}/ippicv/${name}";
           inherit sha256;
         };
         dir = "3rdparty/ippicv/downloads/${platform}-${md5}";