2011-10-21 14:43:18 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, GConf, atk, cairo, cmake, curl, dbus_glib, exiv2, glib
|
2012-03-14 19:35:55 +00:00
|
|
|
, libgnome_keyring, gphoto2, gtk, ilmbase, intltool, lcms, lcms2
|
2011-10-21 14:43:18 +00:00
|
|
|
, lensfun, libXau, libXdmcp, libexif, libglade, libgphoto2, libjpeg
|
|
|
|
, libpng, libpthreadstubs, libraw1394, librsvg, libtiff, libxcb
|
2012-11-27 13:32:22 +00:00
|
|
|
, openexr, pixman, pkgconfig, sqlite, bash, libxslt }:
|
2011-10-21 14:43:18 +00:00
|
|
|
|
|
|
|
assert stdenv ? glibc;
|
2011-01-08 21:55:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-27 15:16:58 +00:00
|
|
|
version = "1.1.4";
|
2011-01-08 21:55:33 +00:00
|
|
|
name = "darktable-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-03-27 15:16:58 +00:00
|
|
|
url = "mirror://sourceforge/darktable/darktable/1.1/darktable-${version}.tar.xz";
|
|
|
|
sha256 = "1bzcxh8zm0xxrpifkkksv9k4xagjrzlam00yja9v9cbjlvawfszv";
|
2011-01-08 21:55:33 +00:00
|
|
|
};
|
|
|
|
|
2011-10-21 14:43:18 +00:00
|
|
|
buildInputs =
|
2012-03-14 19:35:55 +00:00
|
|
|
[ GConf atk cairo cmake curl dbus_glib exiv2 glib libgnome_keyring gtk
|
2011-10-21 14:43:18 +00:00
|
|
|
ilmbase intltool lcms lcms2 lensfun libXau libXdmcp libexif
|
|
|
|
libglade libgphoto2 libjpeg libpng libpthreadstubs libraw1394
|
2012-11-27 13:32:22 +00:00
|
|
|
librsvg libtiff libxcb openexr pixman pkgconfig sqlite libxslt
|
2011-10-21 14:43:18 +00:00
|
|
|
];
|
2011-01-08 21:55:33 +00:00
|
|
|
|
2011-07-31 10:49:19 +00:00
|
|
|
preConfigure = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gtk}/include/gtk-2.0"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gtk}/lib/gtk-2.0/include"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${cairo}/include/cairo"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${atk}/include/atk-1.0"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${ilmbase}/include/OpenEXR"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${openexr}/include/OpenEXR"
|
2012-10-09 20:53:38 +00:00
|
|
|
|
|
|
|
substituteInPlace tools/create_preferences.sh.in --replace '#!/usr/bin/env bash' '#!${bash}/bin/bash'
|
2011-07-31 10:49:19 +00:00
|
|
|
'';
|
2011-01-08 21:55:33 +00:00
|
|
|
|
2011-07-31 10:49:19 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPTHREAD_INCLUDE_DIR=${stdenv.glibc}/include"
|
|
|
|
"-DPTHREAD_LIBRARY=${stdenv.glibc}/lib/libpthread.so"
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib}/lib/glib-2.0/include"
|
|
|
|
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk}/lib/gtk-2.0/include"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Virtual lighttable and darkroom for photographers";
|
2011-01-08 21:55:33 +00:00
|
|
|
homepage = http://darktable.sourceforge.net;
|
2011-07-31 10:49:19 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2011-01-08 21:55:33 +00:00
|
|
|
};
|
|
|
|
}
|