anchor.diff:      "-DWITH_OPENMP=ON"
       "-DBUILD_PROTOBUF=OFF"
       "-DPROTOBUF_UPDATE_FILES=ON"
  +    "-DOPENCV_ENABLE_NONFREE=${printEnabled enableUnfree}"
       (opencvFlag "IPP" enableIpp)
       (opencvFlag "TIFF" enableTIFF)
       (opencvFlag "JASPER" enableJPEG2K)
  
positive.code:     dst  = ".cache/tiny_dnn";
    };
  
    opencvFlag = name: enabled: "-DWITH_${name}=${if enabled then "ON" else "OFF"}";
  
  in
  
  stdenv.mkDerivation rec {
  
negative.code: 
  , enableCuda      ? (config.cudaSupport or false), cudatoolkit
  
  , enableUnfree    ? false
  , enableIpp       ? false
  , enableContrib   ? false
  , enablePython    ? false, pythonPackages
  