1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/graphics/gthumb/default.nix

112 lines
1.9 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, fetchpatch
, gnome3
, pkg-config
, 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 12:32:27 +01:00
stdenv.mkDerivation rec {
2016-08-19 12:32:27 +01:00
pname = "gthumb";
2020-11-18 09:30:08 +00:00
version = "3.10.1";
2016-08-19 12:32:27 +01:00
src = fetchurl {
2021-01-15 13:21:58 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-11-18 09:30:08 +00:00
sha256 = "0gm7q6n9lnjsdqpx5b0cqjayhzwnplqb6p5pshzhbfp2zqd2g9ss";
2016-08-19 12:32:27 +01:00
};
nativeBuildInputs = [
bison
desktop-file-utils
flex
itstool
meson
ninja
pkg-config
python3
wrapGAppsHook
];
2016-08-19 12:32:27 +01:00
2019-02-13 21:47:50 +00:00
buildInputs = [
clutter-gtk
exiv2
glib
gnome3.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
libjpeg
libraw
librsvg
libsecret
libsoup
libtiff
libwebp
webkitgtk
2018-04-05 17:31:56 +01:00
];
2016-08-19 12:32:27 +01:00
mesonFlags = [
"-Dlibchamplain=true"
2018-04-05 17:31:56 +01: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 17:31:56 +01:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Gthumb";
2016-08-19 12:32:27 +01:00
description = "Image browser and viewer for GNOME";
platforms = platforms.linux;
license = licenses.gpl2Plus;
maintainers = [ maintainers.mimame ];
2016-08-19 12:32:27 +01:00
};
}