2023-02-14 13:03:27 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-05-22 04:21:21 +00:00
|
|
|
, fetchurl
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-05-22 04:21:21 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2024-06-22 12:43:05 +00:00
|
|
|
, adwaita-icon-theme
|
2019-05-22 04:21:21 +00:00
|
|
|
, exiv2
|
2021-08-31 01:23:28 +00:00
|
|
|
, libheif
|
2019-05-22 04:21:21 +00:00
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, gst_all_1
|
|
|
|
, libraw
|
|
|
|
, libsoup
|
|
|
|
, libsecret
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, libchamplain
|
|
|
|
, librsvg
|
|
|
|
, libwebp
|
2023-09-03 08:50:40 +00:00
|
|
|
, libX11
|
2019-05-22 04:21:21 +00:00
|
|
|
, json-glib
|
|
|
|
, lcms2
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, clutter-gtk
|
2024-04-26 20:24:03 +00:00
|
|
|
, wrapGAppsHook3
|
2019-05-22 04:21:21 +00:00
|
|
|
, shared-mime-info
|
|
|
|
, python3
|
|
|
|
, desktop-file-utils
|
|
|
|
, itstool
|
2024-10-05 01:00:54 +00:00
|
|
|
, withWebservices ? true, webkitgtk_4_0
|
2019-05-22 04:21:21 +00:00
|
|
|
}:
|
2016-08-19 11:32:27 +00:00
|
|
|
|
2019-04-25 06:46:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-08-19 11:32:27 +00:00
|
|
|
pname = "gthumb";
|
2024-03-12 10:16:44 +00:00
|
|
|
version = "3.12.6";
|
2016-08-19 11:32:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-03-12 10:16:44 +00:00
|
|
|
sha256 = "sha256-YIdwxsjnMHOh1AS2W9G3YeGsXcJecBMP8HJIj6kvXDM=";
|
2016-08-19 11:32:27 +00:00
|
|
|
};
|
|
|
|
|
2019-05-22 04:21:21 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bison
|
|
|
|
desktop-file-utils
|
|
|
|
flex
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-05-22 04:21:21 +00:00
|
|
|
python3
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2019-05-22 04:21:21 +00:00
|
|
|
];
|
2016-08-19 11:32:27 +00:00
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
buildInputs = [
|
2019-05-22 04:21:21 +00:00
|
|
|
clutter-gtk
|
|
|
|
exiv2
|
|
|
|
glib
|
2024-06-22 12:43:05 +00:00
|
|
|
adwaita-icon-theme
|
2019-05-22 04:21:21 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gst_all_1.gst-plugins-base
|
2020-04-02 09:29:45 +00: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 04:21:21 +00:00
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
lcms2
|
|
|
|
libchamplain
|
2021-08-31 01:23:28 +00:00
|
|
|
libheif
|
2019-05-22 04:21:21 +00:00
|
|
|
libjpeg
|
|
|
|
libraw
|
|
|
|
librsvg
|
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
libtiff
|
|
|
|
libwebp
|
2023-09-03 08:50:40 +00:00
|
|
|
libX11
|
2024-10-05 01:00:54 +00:00
|
|
|
] ++ lib.optional withWebservices webkitgtk_4_0;
|
2016-08-19 11:32:27 +00:00
|
|
|
|
2019-05-22 04:21:21 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dlibchamplain=true"
|
2023-06-29 09:20:54 +00:00
|
|
|
(lib.mesonBool "webservices" withWebservices)
|
2018-04-05 16:31:56 +00:00
|
|
|
];
|
|
|
|
|
2019-05-22 04:21:21 +00: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 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 16:31:56 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-04-05 16:31:56 +00:00
|
|
|
packageName = pname;
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-04-05 16:31:56 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-05-01 03:44:27 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gthumb";
|
2016-08-19 11:32:27 +00:00
|
|
|
description = "Image browser and viewer for GNOME";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "gthumb";
|
2016-08-19 11:32:27 +00:00
|
|
|
platforms = platforms.linux;
|
2019-05-22 04:21:21 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-09-14 10:15:46 +00:00
|
|
|
maintainers = [ maintainers.mimame ];
|
2016-08-19 11:32:27 +00:00
|
|
|
};
|
|
|
|
}
|