mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
31 lines
923 B
Nix
31 lines
923 B
Nix
{ lib, stdenv, fetchurl, cmake, gtk, libjpeg, libpng, libtiff, jasper, ffmpeg
|
|
, pkgconfig, gstreamer, xineLib, glib, python27, python27Packages, unzip
|
|
, enableBloat ? false }:
|
|
|
|
let v = "2.4.9"; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "opencv-${v}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/opencvlibrary/opencv-${v}.zip";
|
|
sha256 = "0wacpc00dr57w4lxfvllqa177cnbgy2zmcx8pnf8x62lh6210c40";
|
|
};
|
|
|
|
buildInputs =
|
|
[ unzip libjpeg libpng libtiff ]
|
|
++ lib.optionals enableBloat [ gtk glib jasper ffmpeg xineLib gstreamer python27 python27Packages.numpy ];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Open Computer Vision Library with more than 500 algorithms";
|
|
homepage = http://opencv.willowgarage.com/;
|
|
license = "BSD";
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|