2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-05-22 06:21:21 +02:00
|
|
|
, fetchurl
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-05-22 06:21:21 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, exiv2
|
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, gst_all_1
|
|
|
|
, libraw
|
|
|
|
, libsoup
|
|
|
|
, libsecret
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, libchamplain
|
|
|
|
, librsvg
|
|
|
|
, libwebp
|
|
|
|
, json-glib
|
|
|
|
, webkitgtk
|
|
|
|
, lcms2
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, clutter-gtk
|
|
|
|
, wrapGAppsHook
|
|
|
|
, shared-mime-info
|
|
|
|
, python3
|
|
|
|
, desktop-file-utils
|
|
|
|
, itstool
|
|
|
|
}:
|
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";
|
2021-03-21 02:19:48 +01:00
|
|
|
version = "3.11.3";
|
2016-08-19 13:32:27 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-03-21 02:19:48 +01:00
|
|
|
sha256 = "11bvcimamdcksgqj1ymh54yzhpwc5j8glda8brqqhwq3h2wj0j9d";
|
2016-08-19 13:32:27 +02:00
|
|
|
};
|
|
|
|
|
2019-05-22 06:21:21 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bison
|
|
|
|
desktop-file-utils
|
|
|
|
flex
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-05-22 06:21:21 +02:00
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2016-08-19 13:32:27 +02:00
|
|
|
|
2019-02-13 22:47:50 +01:00
|
|
|
buildInputs = [
|
2019-05-22 06:21:21 +02:00
|
|
|
clutter-gtk
|
|
|
|
exiv2
|
|
|
|
glib
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.adwaita-icon-theme
|
2019-05-22 06:21:21 +02:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gst_all_1.gst-plugins-base
|
2020-04-02 11:29:45 +02:00
|
|
|
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
|
|
|
|
gst_all_1.gst-libav
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-ugly
|
2019-05-22 06:21:21 +02:00
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
lcms2
|
|
|
|
libchamplain
|
|
|
|
libjpeg
|
|
|
|
libraw
|
|
|
|
librsvg
|
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
libtiff
|
|
|
|
libwebp
|
|
|
|
webkitgtk
|
2018-04-05 18:31:56 +02:00
|
|
|
];
|
2016-08-19 13:32:27 +02:00
|
|
|
|
2019-05-22 06:21:21 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dlibchamplain=true"
|
2018-04-05 18:31:56 +02:00
|
|
|
];
|
|
|
|
|
2019-05-22 06:21:21 +02:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x gthumb/make-gthumb-h.py
|
|
|
|
|
|
|
|
patchShebangs data/gschemas/make-enums.py \
|
|
|
|
gthumb/make-gthumb-h.py \
|
|
|
|
po/make-potfiles-in.py \
|
|
|
|
postinstall.py \
|
|
|
|
gthumb/make-authors-tab.py
|
|
|
|
'';
|
|
|
|
|
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 = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2018-04-05 18:31:56 +02:00
|
|
|
packageName = pname;
|
2021-03-21 00:57:24 +01:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-04-05 18:31:56 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-04 15:59:55 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Gthumb";
|
2016-08-19 13:32:27 +02:00
|
|
|
description = "Image browser and viewer for GNOME";
|
|
|
|
platforms = platforms.linux;
|
2019-05-22 06:21:21 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2019-09-14 12:15:46 +02:00
|
|
|
maintainers = [ maintainers.mimame ];
|
2016-08-19 13:32:27 +02:00
|
|
|
};
|
|
|
|
}
|