2016-08-19 13:32:27 +02:00
|
|
|
{ stdenv, fetchurl, gnome3, itstool, libxml2, pkgconfig, intltool,
|
2018-04-05 18:31:56 +02:00
|
|
|
exiv2, libjpeg, libtiff, gst_all_1, libraw, libsoup, libsecret,
|
2019-02-13 22:47:50 +01:00
|
|
|
glib, gtk3, gsettings-desktop-schemas,
|
2018-04-05 18:31:56 +02:00
|
|
|
libchamplain, librsvg, libwebp, json-glib, webkitgtk, lcms2, bison,
|
|
|
|
flex, wrapGAppsHook, shared-mime-info }:
|
2016-08-19 13:32:27 +02:00
|
|
|
|
2019-04-25 08:46:07 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-08-19 13:32:27 +02:00
|
|
|
pname = "gthumb";
|
2018-12-16 04:28:44 +01:00
|
|
|
version = "3.6.2";
|
2016-08-19 13:32:27 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-25 08:46:07 +02:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-12-16 04:28:44 +01:00
|
|
|
sha256 = "0rjb0bsjhn7nyl5jyjgrypvr6qdr9dc2g586j3lzan96a2vnpgy9";
|
2016-08-19 13:32:27 +02:00
|
|
|
};
|
|
|
|
|
2018-04-05 18:31:56 +02:00
|
|
|
nativeBuildInputs = [ itstool libxml2 intltool pkgconfig bison flex wrapGAppsHook ];
|
2016-08-19 13:32:27 +02:00
|
|
|
|
2019-02-13 22:47:50 +01:00
|
|
|
buildInputs = [
|
|
|
|
glib gtk3 gsettings-desktop-schemas gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
2018-04-05 18:31:56 +02:00
|
|
|
exiv2 libjpeg libtiff libraw libsoup libsecret libchamplain
|
2019-02-13 22:47:50 +01:00
|
|
|
librsvg libwebp json-glib webkitgtk lcms2 gnome3.adwaita-icon-theme
|
2018-04-05 18:31:56 +02:00
|
|
|
];
|
2016-08-19 13:32:27 +02:00
|
|
|
|
2016-10-11 11:55:42 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-04-05 18:31:56 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-libchamplain"
|
|
|
|
];
|
|
|
|
|
2018-02-24 10:45:24 +01:00
|
|
|
preFixup = ''
|
2018-02-25 03:23:58 +01:00
|
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
|
2018-02-24 10:45:24 +01:00
|
|
|
'';
|
|
|
|
|
2018-04-05 18:31:56 +02:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-08-19 13:32:27 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/gthumb;
|
|
|
|
description = "Image browser and viewer for GNOME";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.mimadrid ];
|
|
|
|
};
|
|
|
|
}
|