2018-03-13 22:10:00 +00:00
|
|
|
{ fetchurl, stdenv, meson, ninja, gettext, itstool, pkgconfig, libxml2, libjpeg, libpeas, gnome3
|
|
|
|
, gtk3, glib, gsettings-desktop-schemas, adwaita-icon-theme, gnome-desktop, lcms2, gdk_pixbuf, exempi
|
2018-12-02 11:41:15 +00:00
|
|
|
, shared-mime-info, wrapGAppsHook, librsvg, libexif, gobject-introspection, python3 }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-13 22:10:00 +00:00
|
|
|
let
|
|
|
|
pname = "eog";
|
2019-04-13 13:48:43 +01:00
|
|
|
version = "3.32.1";
|
2018-03-13 22:10:00 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-04-13 13:48:43 +01:00
|
|
|
sha256 = "165axw63c2l5qk5k2xs7g9d97xnxf5a4br0hdb8s3bpv7lf5nw8q";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-12-02 11:41:15 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext itstool wrapGAppsHook libxml2 gobject-introspection python3 ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-13 22:10:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
libjpeg gtk3 gdk_pixbuf glib libpeas librsvg lcms2 gnome-desktop libexif exempi
|
|
|
|
gsettings-desktop-schemas shared-mime-info adwaita-icon-theme
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-13 22:10:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2019-01-14 21:29:08 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Thumbnailers
|
|
|
|
--prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
|
|
|
|
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2018-03-13 22:10:00 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GNOME image viewer";
|
2018-03-13 22:10:00 +00:00
|
|
|
homepage = https://wiki.gnome.org/Apps/EyeOfGnome;
|
|
|
|
license = licenses.gpl2Plus;
|
2016-09-18 20:35:23 +01:00
|
|
|
maintainers = gnome3.maintainers;
|
2018-03-13 22:10:00 +00:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|