2015-07-30 14:00:37 +03:00
|
|
|
{ fetchurl, stdenv, m4, glibc, gtk3, libexif, libgphoto2, libsoup, libxml2, vala, sqlite
|
|
|
|
, webkitgtk24x, pkgconfig, gnome3, gst_all_1, which, udev, libraw, glib, json_glib
|
|
|
|
, gettext, desktop_file_utils, lcms2, gdk_pixbuf, librsvg, makeWrapper
|
2015-07-31 02:30:15 +03:00
|
|
|
, gnome_doc_utils, hicolor_icon_theme }:
|
2013-07-14 17:14:37 +04:00
|
|
|
|
|
|
|
# for dependencies see http://www.yorba.org/projects/shotwell/install/
|
|
|
|
|
2015-07-30 14:00:37 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-27 00:12:59 +03:00
|
|
|
version = "0.20.2";
|
2013-07-14 17:14:37 +04:00
|
|
|
name = "shotwell-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-27 00:12:59 +03:00
|
|
|
url = "mirror://gnome/sources/shotwell/0.20/${name}.tar.xz";
|
|
|
|
sha256 = "0h5pdczsrkplvlvq54zk3am4kjmfpd6pn2sz0ky8lfq1fngwiqip";
|
2013-07-14 17:14:37 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib}/include/glib-2.0 -I${glib}/lib/glib-2.0/include";
|
2015-07-31 02:30:15 +03:00
|
|
|
|
2013-07-14 17:14:37 +04:00
|
|
|
configureFlags = [ "--disable-gsettings-convert-install" ];
|
2015-07-31 02:30:15 +03:00
|
|
|
|
2015-01-08 12:26:49 +03:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2013-07-14 17:14:37 +04:00
|
|
|
postInstall = ''
|
2014-04-05 17:51:42 +04:00
|
|
|
mkdir -p $out/share/gsettings-schemas/$name
|
|
|
|
mv $out/share/glib-2.0 $out/share/gsettings-schemas/$name/
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2013-07-14 17:14:37 +04:00
|
|
|
wrapProgram "$out/bin/shotwell" \
|
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
2014-12-22 12:28:28 +03:00
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gtk3}/share:$out/share:$GSETTINGS_SCHEMAS_PATH" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${gnome3.dconf}/lib/gio/modules"
|
2013-07-14 17:14:37 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
|
2015-07-30 14:00:37 +03:00
|
|
|
buildInputs = [ m4 glibc gtk3 libexif libgphoto2 libsoup libxml2 vala sqlite webkitgtk24x
|
|
|
|
pkgconfig gst_all_1.gstreamer gst_all_1.gst-plugins-base gnome3.libgee
|
|
|
|
which udev gnome3.gexiv2 hicolor_icon_theme
|
|
|
|
libraw json_glib gettext desktop_file_utils glib lcms2 gdk_pixbuf librsvg
|
|
|
|
makeWrapper gnome_doc_utils gnome3.rest
|
2015-05-19 15:40:04 +03:00
|
|
|
gnome3.defaultIconTheme ];
|
2013-07-14 17:14:37 +04:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Popular photo organizer for the GNOME desktop";
|
|
|
|
homepage = http://www.yorba.org/projects/shotwell/;
|
2014-03-20 00:10:15 +04:00
|
|
|
license = licenses.lgpl21Plus;
|
2013-07-14 17:14:37 +04:00
|
|
|
maintainers = with maintainers; [iElectric];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-03-20 00:10:15 +04:00
|
|
|
}
|