2016-02-08 00:54:10 +01:00
|
|
|
{ stdenv, fetchFromGitHub, unzip, cmake, libtiff, expat, zlib, libpng, libjpeg }:
|
2009-01-12 22:12:07 +01:00
|
|
|
stdenv.mkDerivation {
|
2016-02-08 00:54:10 +01:00
|
|
|
name = "vxl-1.17.0-nix1";
|
2009-01-12 22:12:07 +01:00
|
|
|
|
2016-02-08 00:54:10 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vxl";
|
|
|
|
repo = "vxl";
|
|
|
|
rev = "777c0beb7c8b30117400f6fc9a6d63bf8cb7c67a";
|
|
|
|
sha256 = "0xpkwwb93ka6c3da8zjhfg9jk5ssmh9ifdh1by54sz6c7mbp55m8";
|
2009-01-12 22:12:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake unzip libtiff expat zlib libpng libjpeg ];
|
|
|
|
|
2012-12-21 10:53:10 +01:00
|
|
|
# BUILD_OUL wants old linux headers for videodev.h, not available
|
|
|
|
# in stdenv linux headers
|
2013-12-30 15:32:19 +01:00
|
|
|
# BUILD_BRL fails to find open()
|
|
|
|
cmakeFlags = "-DBUILD_TESTING=OFF -DBUILD_OUL=OFF -DBUILD_BRL=OFF -DBUILD_CONTRIB=OFF "
|
2012-12-28 19:54:15 +01:00
|
|
|
+ (if stdenv.system == "x86_64-linux" then
|
2009-03-13 17:46:10 +01:00
|
|
|
"-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC"
|
|
|
|
else
|
2012-03-07 11:16:53 +01:00
|
|
|
"");
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2009-03-13 17:46:10 +01:00
|
|
|
|
2009-01-12 22:12:07 +01:00
|
|
|
meta = {
|
|
|
|
description = "C++ Libraries for Computer Vision Research and Implementation";
|
|
|
|
homepage = http://vxl.sourceforge.net/;
|
|
|
|
license = "VXL License";
|
2009-10-01 22:18:17 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-01-12 22:12:07 +01:00
|
|
|
};
|
|
|
|
}
|