2013-09-26 01:25:55 +04:00
|
|
|
{ stdenv, fetchurl, libsoup, graphicsmagick, SDL, json_glib
|
2011-10-21 18:43:18 +04:00
|
|
|
, GConf, atk, cairo, cmake, curl, dbus_glib, exiv2, glib
|
2016-01-09 03:24:28 +03:00
|
|
|
, libgnome_keyring, gtk3, ilmbase, intltool, lcms, lcms2
|
2011-10-21 18:43:18 +04:00
|
|
|
, lensfun, libXau, libXdmcp, libexif, libglade, libgphoto2, libjpeg
|
2016-01-09 03:24:28 +03:00
|
|
|
, libpng, libpthreadstubs, librsvg, libtiff, libxcb
|
2016-06-07 21:07:16 +03:00
|
|
|
, openexr, osm-gps-map, pixman, pkgconfig, sqlite, bash, libxslt, openjpeg
|
2016-01-09 03:24:28 +03:00
|
|
|
, mesa, lua, pugixml, colord, colord-gtk, libxshmfence, libxkbcommon
|
|
|
|
, epoxy, at_spi2_core, libwebp, libsecret, wrapGAppsHook, gnome3
|
|
|
|
}:
|
2011-10-21 18:43:18 +04:00
|
|
|
|
|
|
|
assert stdenv ? glibc;
|
2011-01-09 00:55:33 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-07-14 02:29:17 +03:00
|
|
|
version = "2.2.5";
|
2011-01-09 00:55:33 +03:00
|
|
|
name = "darktable-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-12-09 20:50:22 +03:00
|
|
|
url = "https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz";
|
2017-07-14 02:29:17 +03:00
|
|
|
sha256 = "10gjzd4irxhladh4jyss9kgp627k8vgx2divipsb33pp6cms80z3";
|
2011-01-09 00:55:33 +03:00
|
|
|
};
|
|
|
|
|
2011-10-21 18:43:18 +04:00
|
|
|
buildInputs =
|
2016-01-09 03:24:28 +03:00
|
|
|
[ GConf atk cairo cmake curl dbus_glib exiv2 glib libgnome_keyring gtk3
|
2011-10-21 18:43:18 +04:00
|
|
|
ilmbase intltool lcms lcms2 lensfun libXau libXdmcp libexif
|
2016-01-09 03:24:28 +03:00
|
|
|
libglade libgphoto2 libjpeg libpng libpthreadstubs
|
2012-11-27 17:32:22 +04:00
|
|
|
librsvg libtiff libxcb openexr pixman pkgconfig sqlite libxslt
|
2016-01-09 03:24:28 +03:00
|
|
|
libsoup graphicsmagick SDL json_glib openjpeg mesa lua pugixml
|
|
|
|
colord colord-gtk libxshmfence libxkbcommon epoxy at_spi2_core
|
|
|
|
libwebp libsecret wrapGAppsHook gnome3.adwaita-icon-theme
|
2016-06-07 21:07:16 +03:00
|
|
|
osm-gps-map
|
2011-10-21 18:43:18 +04:00
|
|
|
];
|
2011-01-09 00:55:33 +03:00
|
|
|
|
2011-07-31 14:49:19 +04:00
|
|
|
cmakeFlags = [
|
2013-09-26 01:25:55 +04:00
|
|
|
"-DBUILD_USERMANUAL=False"
|
2011-07-31 14:49:19 +04:00
|
|
|
];
|
|
|
|
|
2016-12-31 22:59:30 +03:00
|
|
|
# darktable changed its rpath handling in commit
|
|
|
|
# 83c70b876af6484506901e6b381304ae0d073d3c and as a result the
|
|
|
|
# binaries can't find libdarktable.so, so change LD_LIBRARY_PATH in
|
|
|
|
# the wrappers:
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix LD_LIBRARY_PATH ":" "$out/lib/darktable"
|
|
|
|
)
|
|
|
|
'';
|
2017-01-06 08:46:33 +03:00
|
|
|
|
2011-07-31 14:49:19 +04:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Virtual lighttable and darkroom for photographers";
|
2016-03-11 15:24:48 +03:00
|
|
|
homepage = https://www.darktable.org;
|
2011-07-31 14:49:19 +04:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2014-12-09 20:50:22 +03:00
|
|
|
maintainers = [ maintainers.goibhniu maintainers.rickynils maintainers.flosse ];
|
2011-01-09 00:55:33 +03:00
|
|
|
};
|
|
|
|
}
|