nixpkgs/pkgs/desktops/gnome-3/core/eog/default.nix

52 lines
1.5 KiB
Nix
Raw Normal View History

2018-03-13 22:10:00 +00:00
{ fetchurl, stdenv, meson, ninja, gettext, itstool, pkgconfig, libxml2, libjpeg, libpeas, gnome3
2019-05-22 12:03:39 +01:00
, gtk3, glib, gsettings-desktop-schemas, adwaita-icon-theme, gnome-desktop, lcms2, gdk-pixbuf, exempi
, shared-mime-info, wrapGAppsHook, librsvg, libexif, gobject-introspection, python3 }:
2018-03-13 22:10:00 +00:00
let
pname = "eog";
2020-05-03 14:17:11 +01:00
version = "3.36.2";
2018-03-13 22:10:00 +00:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2020-05-03 14:17:11 +01:00
sha256 = "135pw7ifr585grz1rbmynyyrmhd8w880pilg7c4nvq58jl16n1aw";
};
nativeBuildInputs = [ meson ninja pkgconfig gettext itstool wrapGAppsHook libxml2 gobject-introspection python3 ];
2018-03-13 22:10:00 +00:00
buildInputs = [
2019-05-22 12:03:39 +01:00
libjpeg gtk3 gdk-pixbuf glib libpeas librsvg lcms2 gnome-desktop libexif exempi
2018-03-13 22:10:00 +00:00
gsettings-desktop-schemas shared-mime-info adwaita-icon-theme
];
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 = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
meta = with stdenv.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;
};
}