2013-07-14 14:14:37 +01:00
|
|
|
{ fetchurl, stdenv, m4, glibc, gtk3, libexif, libgphoto2, libsoup, libxml2, vala, sqlite, webkit
|
|
|
|
, pkgconfig, gnome3, gst_all_1, which, udev, libraw, glib, json_glib, gettext, desktop_file_utils
|
2014-03-21 17:02:06 +00:00
|
|
|
, lcms2, gdk_pixbuf, librsvg, makeWrapper, gnome_doc_utils }:
|
2013-07-14 14:14:37 +01:00
|
|
|
|
|
|
|
# for dependencies see http://www.yorba.org/projects/shotwell/install/
|
|
|
|
|
|
|
|
let
|
|
|
|
rest = stdenv.mkDerivation rec {
|
|
|
|
name = "rest-0.7.12";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/rest/0.7/${name}.tar.xz";
|
|
|
|
sha256 = "0fmg7fq5fx0jg3ryk71kwdkspsvj42acxy9imk7vznkqj29a9zqn";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-bundle.crt";
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig glib libsoup ];
|
|
|
|
};
|
|
|
|
in stdenv.mkDerivation rec {
|
2014-03-21 17:02:06 +00:00
|
|
|
version = "0.18.0";
|
2013-07-14 14:14:37 +01:00
|
|
|
name = "shotwell-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-21 17:02:06 +00:00
|
|
|
url = "mirror://gnome/sources/shotwell/0.18/${name}.tar.xz";
|
|
|
|
sha256 = "0cq0zs13f3f4xyz46yvj4qfpm5nh4ypds7r53pkqm4a3n8ybf5v7";
|
2013-07-14 14:14:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib}/include/glib-2.0 -I${glib}/lib/glib-2.0/include";
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-gsettings-convert-install" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
2014-04-05 14:51:42 +01:00
|
|
|
|
2013-07-14 14:14:37 +01:00
|
|
|
postInstall = ''
|
2014-04-05 14:51:42 +01:00
|
|
|
mkdir -p $out/share/gsettings-schemas/$name
|
|
|
|
mv $out/share/glib-2.0 $out/share/gsettings-schemas/$name/
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2013-07-14 14:14:37 +01:00
|
|
|
wrapProgram "$out/bin/shotwell" \
|
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
2014-04-05 14:51:42 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gtk3}/share:$out/share:$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
rm $out/share/icons/hicolor/icon-theme.cache
|
2013-07-14 14:14:37 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
buildInputs = [ m4 glibc gtk3 libexif libgphoto2 libsoup libxml2 vala sqlite webkit pkgconfig
|
|
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base gnome3.libgee which udev gnome3.gexiv2
|
|
|
|
libraw rest json_glib gettext desktop_file_utils glib lcms2 gdk_pixbuf librsvg
|
2014-03-21 17:02:06 +00:00
|
|
|
makeWrapper gnome_doc_utils ];
|
2013-07-14 14:14:37 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Popular photo organizer for the GNOME desktop";
|
|
|
|
homepage = http://www.yorba.org/projects/shotwell/;
|
2014-03-19 20:10:15 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2013-07-14 14:14:37 +01:00
|
|
|
maintainers = with maintainers; [iElectric];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-03-19 20:10:15 +00:00
|
|
|
}
|