2016-08-19 12:32:27 +01:00
|
|
|
{ stdenv, fetchurl, gnome3, itstool, libxml2, pkgconfig, intltool,
|
2018-04-05 17:31:56 +01:00
|
|
|
exiv2, libjpeg, libtiff, gst_all_1, libraw, libsoup, libsecret,
|
|
|
|
libchamplain, librsvg, libwebp, json-glib, webkitgtk, lcms2, bison,
|
|
|
|
flex, wrapGAppsHook, shared-mime-info }:
|
2016-08-19 12:32:27 +01:00
|
|
|
|
2018-04-05 17:31:56 +01:00
|
|
|
let
|
2016-08-19 12:32:27 +01:00
|
|
|
pname = "gthumb";
|
2018-04-05 17:31:56 +01:00
|
|
|
version = "3.6.1";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-08-19 12:32:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-04-05 17:31:56 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
|
|
|
sha256 = "1vj26gw9b5y4bmb2m49wplqg0md568g3gxin500v3slggzhzkaww";
|
2016-08-19 12:32:27 +01:00
|
|
|
};
|
|
|
|
|
2018-04-05 17:31:56 +01:00
|
|
|
nativeBuildInputs = [ itstool libxml2 intltool pkgconfig bison flex wrapGAppsHook ];
|
2016-08-19 12:32:27 +01:00
|
|
|
|
2018-04-05 17:31:56 +01:00
|
|
|
buildInputs = with gnome3; [
|
|
|
|
glib gtk gsettings-desktop-schemas gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
|
|
|
exiv2 libjpeg libtiff libraw libsoup libsecret libchamplain
|
|
|
|
librsvg libwebp json-glib webkitgtk lcms2 defaultIconTheme
|
|
|
|
];
|
2016-08-19 12:32:27 +01:00
|
|
|
|
2016-10-11 10:55:42 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-04-05 17:31:56 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-libchamplain"
|
|
|
|
];
|
|
|
|
|
2018-02-24 09:45:24 +00:00
|
|
|
preFixup = ''
|
2018-02-25 02:23:58 +00:00
|
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
|
2018-02-24 09:45:24 +00:00
|
|
|
'';
|
|
|
|
|
2018-04-05 17:31:56 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-08-19 12:32:27 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|