18 python = python3.withPackages (py: with py; [ numpy ]);
20 stdenv.mkDerivation rec {
22 version = "unstable-2022-01-11";
24 src = fetchFromGitHub {
27 rev = "093d57d15c8c237adf1704d96daa6393158ce299";
28 sha256 = "sha256-pFANoT00Wkh1/Dyd2x75IVTfyaoVA7S86tafUSr29Og=";
31 NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
33 nativeBuildInputs = [ cmake ];
47 preConfigure = "cmakeFlags+=\" -DVIGRANUMPY_INSTALL_DIR=$out/lib/${python.libPrefix}/site-packages\"";
49 cmakeFlags = [ "-DWITH_OPENEXR=1" ]
50 ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-linux")
51 [ "-DCMAKE_CXX_FLAGS=-fPIC" "-DCMAKE_C_FLAGS=-fPIC" ];
54 description = "Novel computer vision C++ library with customizable algorithms and data structures";
55 homepage = "https://hci.iwr.uni-heidelberg.de/vigra";
56 license = licenses.mit;
57 maintainers = [ maintainers.viric ];
58 platforms = platforms.unix;