diff --git a/pkgs/applications/graphics/darktable/default.nix b/pkgs/applications/graphics/darktable/default.nix new file mode 100644 index 000000000000..18f19f7347e0 --- /dev/null +++ b/pkgs/applications/graphics/darktable/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, + GConf, cairo, curl, dbus_glib, exiv2, gnome_keyring, gphoto2, gtk, + intltool, lcms, lensfun, libexif, libglade, libgphoto2, libjpeg, + libpng, libraw1394, librsvg, libtiff, openexr, pkgconfig, sqlite, }: + +stdenv.mkDerivation rec { + version = "0.7.1"; + name = "darktable-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/darktable/darktable-${version}.tar.gz"; + sha256 = "080gvf5gp3rb0vlsvdgnzrzky9dfpqw5cwnj6z1k8lvryd9fzahm"; + }; + + patches = [ ./exif.patch ]; + + buildInputs = [ GConf cairo curl dbus_glib exiv2 gnome_keyring gtk + intltool lcms lensfun libexif libglade + libgphoto2 libjpeg libpng libraw1394 librsvg + libtiff openexr pkgconfig sqlite ]; + + meta = { + description = "a virtual lighttable and darkroom for photographers"; + homepage = http://darktable.sourceforge.net; + license = stdenv.lib.licenses.gpl3Plus; + }; +} diff --git a/pkgs/applications/graphics/darktable/exif.patch b/pkgs/applications/graphics/darktable/exif.patch new file mode 100644 index 000000000000..f1f59d3ef4e4 --- /dev/null +++ b/pkgs/applications/graphics/darktable/exif.patch @@ -0,0 +1,11 @@ +--- darktable-0.7.1/src/common/exif.cc 2011-01-01 12:08:36.000000000 +0100 ++++ darktable-0.7.1/src/common/exif.cc 2011-01-01 12:09:27.000000000 +0100 +@@ -33,7 +33,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ccb19781ad8b..cb1bb8396c23 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5662,6 +5662,10 @@ let darcs = haskellPackages.darcs; + darktable = callPackage ../applications/graphics/darktable { + inherit (gnome) GConf gnome_keyring libglade; + }; + dia = callPackage ../applications/graphics/dia { }; digikam = newScope pkgs.kde4 ../applications/graphics/digikam { };