anchor.diff:    NIX_CFLAGS_COMPILE = lib.optional enableEXR "-I${ilmbase.dev}/include/OpenEXR";
   
     cmakeFlags = [
  -    "-DWITH_IPP=${if enableIpp then "ON" else "OFF"} -DWITH_OPENMP=ON"
  +    "-DBUILD_PROTOBUF=OFF"
  +    "-DPROTOBUF_UPDATE_FILES=ON"
  +    "-DWITH_OPENMP=ON"
  +    (opencvFlag "IPP" enableIpp)
       (opencvFlag "TIFF" enableTIFF)
       (opencvFlag "JASPER" enableJPEG2K)
       (opencvFlag "WEBP" enableWebP)
  
positive.code:   ] ++ lib.optionals enableCuda [
      "-DCUDA_FAST_MATH=ON"
      "-DCUDA_HOST_COMPILER=${cudatoolkit.cc}/bin/gcc"
    ] ++ lib.optional buildContrib "-DBUILD_PROTOBUF=off"
      ++ lib.optionals stdenv.isDarwin ["-DWITH_OPENCL=OFF" "-DWITH_LAPACK=OFF"];
  
    enableParallelBuilding = true;
  
    hardeningDisable = [ "bindnow" "relro" ];
  
  
negative.code:     description = "Open Computer Vision Library with more than 500 algorithms";
      homepage = http://opencv.org/;
      license = stdenv.lib.licenses.bsd3;
      maintainers = with stdenv.lib.maintainers; [viric mdaiter basvandijk];
      platforms = with stdenv.lib.platforms; linux ++ darwin;
    };
  }
  