nixpkgs/pkgs/applications/graphics/darktable/default.nix

55 lines
2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, libsoup, graphicsmagick, SDL, json_glib
, GConf, atk, cairo, cmake, curl, dbus_glib, exiv2, glib
, libgnome_keyring, gtk3, ilmbase, intltool, lcms, lcms2
, lensfun, libXau, libXdmcp, libexif, libglade, libgphoto2, libjpeg
, libpng, libpthreadstubs, librsvg, libtiff, libxcb
, openexr, osm-gps-map, pixman, pkgconfig, sqlite, bash, libxslt, openjpeg
, mesa, lua, pugixml, colord, colord-gtk, libxshmfence, libxkbcommon
, epoxy, at_spi2_core, libwebp, libsecret, wrapGAppsHook, gnome3
}:
assert stdenv ? glibc;
stdenv.mkDerivation rec {
2017-12-25 12:13:24 +01:00
version = "2.4.0";
name = "darktable-${version}";
src = fetchurl {
2014-12-09 18:50:22 +01:00
url = "https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz";
2017-12-25 12:13:24 +01:00
sha256 = "0y0q7a7k09sbg05k5xl1lz8n2ak1v8yarfv222ksvmbrxs53hdwx";
};
buildInputs =
[ GConf atk cairo cmake curl dbus_glib exiv2 glib libgnome_keyring gtk3
ilmbase intltool lcms lcms2 lensfun libXau libXdmcp libexif
libglade libgphoto2 libjpeg libpng libpthreadstubs
2012-11-27 14:32:22 +01:00
librsvg libtiff libxcb openexr pixman pkgconfig sqlite libxslt
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
osm-gps-map
];
cmakeFlags = [
"-DBUILD_USERMANUAL=False"
];
2016-12-31 20:59:30 +01: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 06:46:33 +01:00
meta = with stdenv.lib; {
description = "Virtual lighttable and darkroom for photographers";
2016-03-11 13:24:48 +01:00
homepage = https://www.darktable.org;
license = licenses.gpl3Plus;
platforms = platforms.linux;
2017-12-25 12:13:24 +01:00
maintainers = with maintainers; [ goibhniu rickynils flosse mrVanDalo ];
};
}