1 { lib, stdenv, fetchFromGitHub, unzip, cmake, libtiff, expat, zlib, libpng, libjpeg }:
3 name = "vxl-1.17.0-nix1";
5 src = fetchFromGitHub {
8 rev = "777c0beb7c8b30117400f6fc9a6d63bf8cb7c67a";
9 sha256 = "0xpkwwb93ka6c3da8zjhfg9jk5ssmh9ifdh1by54sz6c7mbp55m8";
12 nativeBuildInputs = [ cmake unzip ];
13 buildInputs = [ libtiff expat zlib libpng libjpeg ];
16 # BUILD_OUL wants old linux headers for videodev.h, not available
17 # in stdenv linux headers
19 # BUILD_BRL fails to find open()
22 ] ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-linux") [
23 "-DCMAKE_CXX_FLAGS=-fPIC"
24 "-DCMAKE_C_FLAGS=-fPIC"
28 description = "C++ Libraries for Computer Vision Research and Implementation";
29 homepage = "http://vxl.sourceforge.net/";
30 license = "VXL License";
31 maintainers = with lib.maintainers; [viric];
32 platforms = with lib.platforms; linux;