gnome.eog: 41.1 → 42.beta

https://gitlab.gnome.org/GNOME/eog/-/compare/41.1...42.beta
This commit is contained in:
Jan Tojnar 2022-02-16 18:34:07 +00:00
parent 717e78789f
commit 9c7e716ffa

View File

@ -1,6 +1,6 @@
{ lib, stdenv
{ lib
, stdenv
, fetchurl
, fetchpatch
, meson
, ninja
, gettext
@ -12,9 +12,9 @@
, libportal-gtk3
, gnome
, gtk3
, libhandy
, glib
, gsettings-desktop-schemas
, adwaita-icon-theme
, gnome-desktop
, lcms2
, gdk-pixbuf
@ -24,27 +24,20 @@
, librsvg
, libexif
, gobject-introspection
, python3
, gi-docgen
}:
stdenv.mkDerivation rec {
pname = "eog";
version = "41.1";
version = "42.beta";
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "sha256-huG5ujnaz3QiavpFermDtBJTuJ9he/VBOcrQiS0C2Kk=";
sha256 = "sha256-NeArN4a67hTUfPIH23+7krbIcTZEt80UZTcu5KKRuBo=";
};
patches = [
# Fix build with latest libportal
# https://gitlab.gnome.org/GNOME/eog/-/merge_requests/115
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/eog/-/commit/a06e6325907e136678b0bbe7058c25d688034afd.patch";
sha256 = "ttcsfHubfmIbxA51YLnxXDagLLNutXYmoQyMQ4sHRak=";
})
];
nativeBuildInputs = [
meson
ninja
@ -52,15 +45,16 @@ stdenv.mkDerivation rec {
gettext
itstool
wrapGAppsHook
libxml2
libxml2 # for xmllint for xml-stripblanks
gobject-introspection
python3
gi-docgen
];
buildInputs = [
libjpeg
libportal-gtk3
gtk3
libhandy
gdk-pixbuf
glib
libpeas
@ -71,13 +65,11 @@ stdenv.mkDerivation rec {
exempi
gsettings-desktop-schemas
shared-mime-info
adwaita-icon-theme
];
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';
mesonFlags = [
"-Dgtk_doc=true"
];
preFixup = ''
gappsWrapperArgs+=(
@ -88,6 +80,11 @@ stdenv.mkDerivation rec {
)
'';
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;