commit 085cbdb3dfc4d865f3611e1729bfbe3376b175cd
Author: Marc Weber <marco-oweber@gmx.de>
Date:   Fri Jul 8 02:21:17 2011 +0200

    rawtherapee update

diff --git a/pkgs/applications/graphics/rawtherapee/default.nix b/pkgs/applications/graphics/rawtherapee/default.nix
index eda187c..8be7b68 100644
--- a/pkgs/applications/graphics/rawtherapee/default.nix
+++ b/pkgs/applications/graphics/rawtherapee/default.nix
@@ -1,18 +1,35 @@
 { stdenv, fetchsvn, pkgconfig, gtk, cmake, pixman, libpthreadstubs, gtkmm, libXau,
-libXdmcp, lcms, libiptcdata
+libXdmcp, lcms, libiptcdata, libtiff, libjpeg
+, fetchurl, unzip, mercurial, bzip2, lcms2
 }:
 
 stdenv.mkDerivation rec {
-  name = "rawtherapee-svn-25";
+  name = "rawtherapee-hg";
   
+  /*
   src = fetchsvn {
     url = "http://rawtherapee.googlecode.com/svn/trunk";
     rev = 25;
     sha256 = "09jg47rs09lly70x1zlrb3qcwi2rry1m7gjzs39iqzp53hi9j9mh";
   };
+  */
+
+  src = fetchurl {
+    # TODO: upload file
+    url = http://mawercer.de/~marc/rawtherapee-ec8a1afe7bf6.zip;
+    sha256 = "9973d29b32b2059121a82b453e99781f3d2be649248a3663bbad03402b70be01";
+  };
+
+  enableParallelBuilding = true;
   
+  # REGION AUTO UPDATE: { name="rawtherapee"; type="hg"; url="https://rawtherapee.googlecode.com/hg"; }
+  # END
+
   buildInputs = [ pkgconfig gtk cmake pixman libpthreadstubs gtkmm libXau libXdmcp
-    lcms libiptcdata ];
+    lcms libiptcdata unzip  bzip2 lcms2
+    (mercurial.override { plain = true; }) /*  ?*/
+    libtiff libjpeg
+    ];
 
   # Rawtherapee died if the default setting for the icc directory pointed to a
   # non existant place
@@ -21,15 +38,13 @@ stdenv.mkDerivation rec {
   '';
 
   # Disable the use of the RAWZOR propietary libraries
-  cmakeFlags = [ "-DWITH_RAWZOR=OFF" ];
-
-  installPhase = ''
-    ensureDir $out/bin $out/lib
-    cp rtgui/rt $out/bin
-    # Weird kind of path reference
-    cp -r ../release/* $out/bin
-    cp rtengine/*.so $out/lib
-  '';
+  cmakeFlags = [ "-DWITH_RAWZOR=OFF" 
+    "-DJPEG_INCLUDE_DIR=${libjpeg}/include" 
+    "-DJPEG_LIBRARY=${libjpeg}/lib/libjpeg.so" 
+
+    "-DTIFF_INCLUDE_DIR=${libtiff}/include" 
+    "-DTIFF_LIBRARY=${libtiff}/lib/libtiff.so" 
+    ];
 
   meta = {
     description = "RAW converter and digital photo processing software";
