nixpkgs/pkgs/applications/graphics/gthumb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

119 lines
2.1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchurl
, gnome
, pkg-config
, meson
, ninja
, adwaita-icon-theme
, exiv2
, libheif
, libjpeg
, libtiff
, gst_all_1
, libraw
, libsoup
, libsecret
, glib
, gtk3
, gsettings-desktop-schemas
, libchamplain
, librsvg
, libwebp
, libX11
, json-glib
, lcms2
, bison
, flex
, clutter-gtk
, wrapGAppsHook3
, shared-mime-info
, python3
, desktop-file-utils
, itstool
, withWebservices ? true, webkitgtk_4_0
}:
2016-08-19 11:32:27 +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
};
nativeBuildInputs = [
bison
desktop-file-utils
flex
itstool
meson
ninja
pkg-config
python3
wrapGAppsHook3
];
2016-08-19 11:32:27 +00:00
2019-02-13 21:47:50 +00:00
buildInputs = [
clutter-gtk
exiv2
glib
adwaita-icon-theme
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
libheif
libjpeg
libraw
librsvg
libsecret
libsoup
libtiff
libwebp
libX11
] ++ lib.optional withWebservices webkitgtk_4_0;
2016-08-19 11:32:27 +00:00
mesonFlags = [
"-Dlibchamplain=true"
(lib.mesonBool "webservices" withWebservices)
2018-04-05 16:31:56 +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 = ''
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 = {
updateScript = gnome.updateScript {
2018-04-05 16:31:56 +00:00
packageName = pname;
versionPolicy = "odd-unstable";
2018-04-05 16:31:56 +00:00
};
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/GNOME/gthumb";
2016-08-19 11:32:27 +00:00
description = "Image browser and viewer for GNOME";
mainProgram = "gthumb";
2016-08-19 11:32:27 +00:00
platforms = platforms.linux;
license = licenses.gpl2Plus;
maintainers = [ maintainers.mimame ];
2016-08-19 11:32:27 +00:00
};
}