2015-07-30 11:00:37 +00:00
|
|
|
{ fetchurl, stdenv, m4, glibc, gtk3, libexif, libgphoto2, libsoup, libxml2, vala, sqlite
|
2016-07-15 15:01:41 +00:00
|
|
|
, webkitgtk, pkgconfig, gnome3, gst_all_1, which, udev, libgudev, libraw, glib, json_glib
|
2015-07-30 11:00:37 +00:00
|
|
|
, gettext, desktop_file_utils, lcms2, gdk_pixbuf, librsvg, makeWrapper
|
2016-07-22 22:32:23 +00:00
|
|
|
, gnome_doc_utils, hicolor_icon_theme, itstool }:
|
2013-07-14 13:14:37 +00:00
|
|
|
|
|
|
|
# for dependencies see http://www.yorba.org/projects/shotwell/install/
|
|
|
|
|
2015-07-30 11:00:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-15 15:01:41 +00:00
|
|
|
version = "${major}.${minor}";
|
|
|
|
major = "0.23";
|
2016-07-22 22:32:23 +00:00
|
|
|
minor = "4";
|
2013-07-14 13:14:37 +00:00
|
|
|
name = "shotwell-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-07-15 15:01:41 +00:00
|
|
|
url = "mirror://gnome/sources/shotwell/${major}/${name}.tar.xz";
|
2016-07-22 22:32:23 +00:00
|
|
|
sha256 = "1hnl0lxibklmr1cy95ij1b3jgvdsw4zlcja53ngfxvlsi2r2bbxi";
|
2013-07-14 13:14:37 +00:00
|
|
|
};
|
|
|
|
|
2016-04-16 16:57:59 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/glib-2.0 -I${glib.out}/lib/glib-2.0/include";
|
2015-07-30 23:30:15 +00:00
|
|
|
|
2013-07-14 13:14:37 +00:00
|
|
|
configureFlags = [ "--disable-gsettings-convert-install" ];
|
2015-07-30 23:30:15 +00:00
|
|
|
|
2015-01-08 09:26:49 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2014-04-05 13:51:42 +00:00
|
|
|
preFixup = ''
|
2013-07-14 13:14:37 +00:00
|
|
|
wrapProgram "$out/bin/shotwell" \
|
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
2015-10-05 20:56:47 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gtk3.out}/share:$out/share:$GSETTINGS_SCHEMAS_PATH" \
|
2014-12-22 09:28:28 +00:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${gnome3.dconf}/lib/gio/modules"
|
2013-07-14 13:14:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
|
2016-07-15 15:01:41 +00:00
|
|
|
buildInputs = [ m4 glibc gtk3 libexif libgphoto2 libsoup libxml2 vala sqlite webkitgtk
|
2015-07-30 11:00:37 +00:00
|
|
|
pkgconfig gst_all_1.gstreamer gst_all_1.gst-plugins-base gnome3.libgee
|
2015-11-24 13:52:48 +00:00
|
|
|
which udev libgudev gnome3.gexiv2 hicolor_icon_theme
|
2015-07-30 11:00:37 +00:00
|
|
|
libraw json_glib gettext desktop_file_utils glib lcms2 gdk_pixbuf librsvg
|
|
|
|
makeWrapper gnome_doc_utils gnome3.rest
|
2016-07-22 22:32:23 +00:00
|
|
|
gnome3.defaultIconTheme itstool ];
|
2013-07-14 13:14:37 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Popular photo organizer for the GNOME desktop";
|
2016-01-01 19:01:42 +00:00
|
|
|
homepage = https://wiki.gnome.org/Apps/Shotwell;
|
2014-03-19 20:10:15 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2016-05-17 11:57:28 +00:00
|
|
|
maintainers = with maintainers; [domenkozar];
|
2013-07-14 13:14:37 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-03-19 20:10:15 +00:00
|
|
|
}
|