3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome/core/eog/default.nix

96 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, meson
, ninja
, gettext
, itstool
, pkg-config
, libxml2
, libjpeg
, libpeas
, libportal
, gnome
, gtk3
, glib
, gsettings-desktop-schemas
, adwaita-icon-theme
, gnome-desktop
, lcms2
, gdk-pixbuf
, exempi
, shared-mime-info
, wrapGAppsHook
, librsvg
, libexif
, gobject-introspection
, python3
}:
stdenv.mkDerivation rec {
2018-03-13 22:10:00 +00:00
pname = "eog";
2021-12-06 04:54:07 +00:00
version = "41.1";
src = fetchurl {
2021-03-21 05:15:45 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
2021-12-06 04:54:07 +00:00
sha256 = "sha256-huG5ujnaz3QiavpFermDtBJTuJ9he/VBOcrQiS0C2Kk=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
itstool
wrapGAppsHook
libxml2
gobject-introspection
python3
];
2018-03-13 22:10:00 +00:00
buildInputs = [
libjpeg
libportal
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
];
2018-03-13 22:10:00 +00:00
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';
preFixup = ''
gappsWrapperArgs+=(
# Thumbnailers
2019-05-22 12:03:39 +01:00
--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 = gnome.updateScript {
2018-03-13 22:10:00 +00:00
packageName = pname;
attrPath = "gnome.${pname}";
2018-03-13 22:10:00 +00:00
};
};
meta = with lib; {
description = "GNOME image viewer";
homepage = "https://wiki.gnome.org/Apps/EyeOfGnome";
2018-03-13 22:10:00 +00:00
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
2018-03-13 22:10:00 +00:00
platforms = platforms.unix;
};
}