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

43 lines
1.3 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
, gtk3, glib, gsettings-desktop-schemas, adwaita-icon-theme, gnome-desktop, lcms2, gdk_pixbuf, exempi
, shared-mime-info, wrapGAppsHook, librsvg, libexif, gobjectIntrospection }:
2018-03-13 22:10:00 +00:00
let
pname = "eog";
2018-03-13 01:03:18 +00:00
version = "3.28.0";
2018-03-13 22:10:00 +00:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
2018-03-13 22:10:00 +00:00
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
2018-03-13 01:03:18 +00:00
sha256 = "0d8fi5ydsh8n7d85dps8svl1bhid1p8jbnlwiqywj2gd2wpxpyjv";
};
2018-03-13 22:10:00 +00:00
nativeBuildInputs = [ meson ninja pkgconfig gettext itstool wrapGAppsHook libxml2 gobjectIntrospection ];
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
];
2018-03-13 22:10:00 +00:00
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
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;
maintainers = gnome3.maintainers;
2018-03-13 22:10:00 +00:00
platforms = platforms.unix;
};
}