2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, unzip, cmake, libtiff, expat, zlib, libpng, libjpeg }:
|
2009-01-12 21:12:07 +00:00
|
|
|
stdenv.mkDerivation {
|
2016-02-07 23:54:10 +00:00
|
|
|
name = "vxl-1.17.0-nix1";
|
2009-01-12 21:12:07 +00:00
|
|
|
|
2016-02-07 23:54:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vxl";
|
|
|
|
repo = "vxl";
|
|
|
|
rev = "777c0beb7c8b30117400f6fc9a6d63bf8cb7c67a";
|
|
|
|
sha256 = "0xpkwwb93ka6c3da8zjhfg9jk5ssmh9ifdh1by54sz6c7mbp55m8";
|
2009-01-12 21:12:07 +00:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake unzip ];
|
|
|
|
buildInputs = [ libtiff expat zlib libpng libjpeg ];
|
2009-01-12 21:12:07 +00:00
|
|
|
|
2019-10-29 22:21:22 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
# BUILD_OUL wants old linux headers for videodev.h, not available
|
|
|
|
# in stdenv linux headers
|
|
|
|
"-DBUILD_OUL=OFF"
|
|
|
|
# BUILD_BRL fails to find open()
|
|
|
|
"-DBUILD_BRL=OFF"
|
|
|
|
"-DBUILD_CONTRIB=OFF"
|
2021-01-21 17:00:13 +00:00
|
|
|
] ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-linux") [
|
2019-10-29 22:21:22 +00:00
|
|
|
"-DCMAKE_CXX_FLAGS=-fPIC"
|
|
|
|
"-DCMAKE_C_FLAGS=-fPIC"
|
|
|
|
];
|
2012-03-07 10:16:53 +00:00
|
|
|
|
2009-01-12 21:12:07 +00:00
|
|
|
meta = {
|
|
|
|
description = "C++ Libraries for Computer Vision Research and Implementation";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://vxl.sourceforge.net/";
|
2009-01-12 21:12:07 +00:00
|
|
|
license = "VXL License";
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = with lib.maintainers; [viric];
|
|
|
|
platforms = with lib.platforms; linux;
|
2009-01-12 21:12:07 +00:00
|
|
|
};
|
|
|
|
}
|