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

109 lines
1.8 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
, fetchpatch
, gnome3
, pkgconfig
, 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
stdenv.mkDerivation rec {
2016-08-19 13:32:27 +02:00
pname = "gthumb";
2019-11-28 04:06:25 +01:00
version = "3.8.2";
2016-08-19 13:32:27 +02:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-11-28 04:06:25 +01:00
sha256 = "15wqks35ks5dm7zj046dfd45vvrilan2ayfy2sxiprv7q74cip2q";
2016-08-19 13:32:27 +02:00
};
nativeBuildInputs = [
bison
desktop-file-utils
flex
itstool
meson
ninja
pkgconfig
python3
wrapGAppsHook
];
2016-08-19 13:32:27 +02:00
2019-02-13 22:47:50 +01:00
buildInputs = [
clutter-gtk
exiv2
glib
gnome3.adwaita-icon-theme
gsettings-desktop-schemas
gst_all_1.gst-plugins-base
gst_all_1.gstreamer
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
mesonFlags = [
"-Dlibchamplain=true"
2018-04-05 18:31:56 +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 = ''
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 = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
2016-08-19 13:32:27 +02:00
meta = with stdenv.lib; {
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;
license = licenses.gpl2Plus;
maintainers = [ maintainers.mimame ];
2016-08-19 13:32:27 +02:00
};
}