anchor.diff:      libjpeg
       libpng
       libtiff
  +    zlib
     ];
   
     patches = [
  
positive.code:     "--enable-contrast"
      "--disable-interp-none"
      "--disable-valgrind"
      (wtFlag "gtk" (gtk_2 != null) null)
      #(wtFlag "gimp" (gimp != null) null)
      "--without-gimp"
    ];
  
    meta = with stdenv.lib; {
      description = "Utility to read & manipulate raw images from digital cameras";
      homepage = http://ufraw.sourceforge.net/;
      license = licenses.gpl2Plus;
  
negative.code: , libjpeg
  , libpng
  , libtiff
  , zlib
  }:
  
  # TODO: gimp plugin support
  
  let
    inherit (lib)
      boolWt;
  in
  stdenv.mkDerivation rec {
    name = "ufraw-0.22";
  
  