2013-09-25 22:25:55 +01:00
|
|
|
{ stdenv, fetchurl, libsoup, graphicsmagick, SDL, json_glib
|
2011-10-21 15:43:18 +01:00
|
|
|
, GConf, atk, cairo, cmake, curl, dbus_glib, exiv2, glib
|
2013-09-24 00:58:45 +01:00
|
|
|
, libgnome_keyring, gtk, ilmbase, intltool, lcms, lcms2
|
2011-10-21 15:43:18 +01:00
|
|
|
, lensfun, libXau, libXdmcp, libexif, libglade, libgphoto2, libjpeg
|
|
|
|
, libpng, libpthreadstubs, libraw1394, librsvg, libtiff, libxcb
|
2013-09-25 22:25:55 +01:00
|
|
|
, openexr, pixman, pkgconfig, sqlite, bash, libxslt, openjpeg
|
|
|
|
, mesa }:
|
2011-10-21 15:43:18 +01:00
|
|
|
|
|
|
|
assert stdenv ? glibc;
|
2011-01-08 21:55:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-18 13:13:27 +01:00
|
|
|
version = "1.6.7";
|
2011-01-08 21:55:33 +00:00
|
|
|
name = "darktable-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-12-09 17:50:22 +00:00
|
|
|
url = "https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz";
|
2015-06-18 13:13:27 +01:00
|
|
|
sha256 = "162c9kdj71az0ipaw4kiqcxhig0hcbmzw936d390r8zhkns76l57";
|
2011-01-08 21:55:33 +00:00
|
|
|
};
|
|
|
|
|
2011-10-21 15:43:18 +01: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 15:43:18 +01: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
|
2013-09-25 22:25:55 +01:00
|
|
|
libsoup graphicsmagick SDL json_glib openjpeg mesa
|
2011-10-21 15:43:18 +01:00
|
|
|
];
|
2011-01-08 21:55:33 +00:00
|
|
|
|
2011-07-31 11:49:19 +01: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"
|
|
|
|
'';
|
2011-01-08 21:55:33 +00:00
|
|
|
|
2011-07-31 11:49:19 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPTHREAD_INCLUDE_DIR=${stdenv.glibc}/include"
|
|
|
|
"-DPTHREAD_LIBRARY=${stdenv.glibc}/lib/libpthread.so"
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
2013-09-25 22:25:55 +01:00
|
|
|
"-DBINARY_PACKAGE_BUILD=1"
|
2011-07-31 11:49:19 +01:00
|
|
|
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib}/lib/glib-2.0/include"
|
|
|
|
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk}/lib/gtk-2.0/include"
|
2013-09-25 22:25:55 +01:00
|
|
|
"-DBUILD_USERMANUAL=False"
|
2011-07-31 11:49:19 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Virtual lighttable and darkroom for photographers";
|
2014-12-09 17:50:22 +00:00
|
|
|
homepage = http://www.darktable.org;
|
2011-07-31 11:49:19 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2014-12-09 17:50:22 +00:00
|
|
|
maintainers = [ maintainers.goibhniu maintainers.rickynils maintainers.flosse ];
|
2011-01-08 21:55:33 +00:00
|
|
|
};
|
|
|
|
}
|