19 python = python3.withPackages (py: with py; [ numpy ]);
21 stdenv.mkDerivation rec {
23 version = "unstable-2022-01-11";
25 src = fetchFromGitHub {
28 rev = "093d57d15c8c237adf1704d96daa6393158ce299";
29 sha256 = "sha256-pFANoT00Wkh1/Dyd2x75IVTfyaoVA7S86tafUSr29Og=";
32 env.NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
34 nativeBuildInputs = [ cmake ];
51 "-DVIGRANUMPY_INSTALL_DIR=${placeholder "out"}/${python.sitePackages}"
53 ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-linux") [
54 "-DCMAKE_CXX_FLAGS=-fPIC"
55 "-DCMAKE_C_FLAGS=-fPIC"
59 description = "Novel computer vision C++ library with customizable algorithms and data structures";
60 mainProgram = "vigra-config";
61 homepage = "https://hci.iwr.uni-heidelberg.de/vigra";
62 license = licenses.mit;
64 platforms = platforms.unix;