2020-09-11 10:30:46 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, pkg-config
|
|
|
|
, libxml2
|
|
|
|
, libjpeg
|
|
|
|
, libpeas
|
2020-09-18 15:35:59 +01:00
|
|
|
, libportal
|
2020-09-11 10:30:46 +01:00
|
|
|
, gnome3
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, gnome-desktop
|
|
|
|
, lcms2
|
|
|
|
, gdk-pixbuf
|
|
|
|
, exempi
|
|
|
|
, shared-mime-info
|
|
|
|
, wrapGAppsHook
|
|
|
|
, librsvg
|
|
|
|
, libexif
|
|
|
|
, gobject-introspection
|
|
|
|
, python3
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2020-09-11 10:30:46 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-13 22:10:00 +00:00
|
|
|
pname = "eog";
|
2020-09-18 15:35:59 +01:00
|
|
|
version = "3.38.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-09-11 10:30:46 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-09-18 15:35:59 +01:00
|
|
|
sha256 = "0qyrs9cp4hsh64jfdpdi2v1hag8izw77qqnsvqwdb33871ya98z1";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2020-09-11 10:30:46 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
wrapGAppsHook
|
|
|
|
libxml2
|
|
|
|
gobject-introspection
|
|
|
|
python3
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-13 22:10:00 +00:00
|
|
|
buildInputs = [
|
2020-09-11 10:30:46 +01:00
|
|
|
libjpeg
|
2020-09-18 15:35:59 +01:00
|
|
|
libportal
|
2020-09-11 10:30:46 +01:00
|
|
|
gtk3
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
libpeas
|
|
|
|
librsvg
|
|
|
|
lcms2
|
|
|
|
gnome-desktop
|
|
|
|
libexif
|
|
|
|
exempi
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
shared-mime-info
|
|
|
|
adwaita-icon-theme
|
2018-03-13 22:10:00 +00:00
|
|
|
];
|
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
|
2019-05-22 12:03:39 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
|
2019-01-14 21:29:08 +00:00
|
|
|
--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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/EyeOfGnome";
|
2018-03-13 22:10:00 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2018-03-13 22:10:00 +00:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|