2023-02-16 17:41:37 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, exiv2
|
2021-09-18 10:52:07 +00:00
|
|
|
, libheif
|
2020-04-24 23:36:52 +00:00
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, gst_all_1
|
|
|
|
, libraw
|
|
|
|
, libsoup
|
|
|
|
, libsecret
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, libchamplain
|
|
|
|
, librsvg
|
|
|
|
, libwebp
|
2023-10-09 19:29:22 +00:00
|
|
|
, libX11
|
2020-04-24 23:36:52 +00:00
|
|
|
, json-glib
|
|
|
|
, webkitgtk
|
|
|
|
, lcms2
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, clutter-gtk
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
, shared-mime-info
|
|
|
|
, python3
|
|
|
|
, desktop-file-utils
|
|
|
|
, itstool
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gthumb";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.12.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-YIdwxsjnMHOh1AS2W9G3YeGsXcJecBMP8HJIj6kvXDM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
bison
|
|
|
|
desktop-file-utils
|
|
|
|
flex
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
clutter-gtk
|
|
|
|
exiv2
|
|
|
|
glib
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
(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
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
lcms2
|
|
|
|
libchamplain
|
2021-09-18 10:52:07 +00:00
|
|
|
libheif
|
2020-04-24 23:36:52 +00:00
|
|
|
libjpeg
|
|
|
|
libraw
|
|
|
|
librsvg
|
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
libtiff
|
|
|
|
libwebp
|
2023-10-09 19:29:22 +00:00
|
|
|
libX11
|
2020-04-24 23:36:52 +00:00
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dlibchamplain=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gthumb";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Image browser and viewer for GNOME";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gthumb";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.mimame ];
|
|
|
|
};
|
|
|
|
}
|