@@ -1,35 +0,0 @@
1−{ stdenv, fetchurl, cmake, gtk, glib, libjpeg, libpng, libtiff, jasper, ffmpeg, pkgconfig,
2− xineLib, gstreamer }:
3−
4−stdenv.mkDerivation rec {
5− name = "opencv-2.1.0";
6−
7− src = fetchurl {
8− url = "mirror://sourceforge/opencvlibrary/OpenCV-2.1.0.tar.bz2";
9− sha256 = "26061fd52ab0ab593c093ff94b5f5c09b956d7deda96b47019ff11932111397f";
10− };
11−
12− # The order is important; libpng should go before X libs, because they
13− # propagate the libpng 1.5 (and opencv wants libpng 1.2)
14− buildInputs = [ cmake libpng gtk glib libjpeg libtiff jasper ffmpeg pkgconfig
15− xineLib gstreamer ];
16−
17− enableParallelBuilding = true;
18−
19− patchPhase = ''
20− sed -i 's/ptrdiff_t/std::ptrdiff_t/' include/opencv/*
21− '';
22−
23− preConfigure = ''
24− export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -D__STDC_CONSTANT_MACROS "
25− '';
26−
27− meta = {
28− description = "Open Computer Vision Library with more than 500 algorithms";
29− homepage = http://opencv.willowgarage.com/;
30− license = stdenv.lib.licenses.bsd3;
31− maintainers = with stdenv.lib.maintainers; [viric];
32− platforms = with stdenv.lib.platforms; linux;
33− broken = true;
34− };
35−}