2022-02-16 18:34:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-09-11 10:30:46 +01:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, pkg-config
|
|
|
|
, libxml2
|
|
|
|
, libjpeg
|
|
|
|
, libpeas
|
2022-01-02 16:07:08 +00:00
|
|
|
, libportal-gtk3
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2020-09-11 10:30:46 +01:00
|
|
|
, gtk3
|
2022-02-16 18:34:07 +00:00
|
|
|
, libhandy
|
2020-09-11 10:30:46 +01:00
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gnome-desktop
|
|
|
|
, lcms2
|
|
|
|
, gdk-pixbuf
|
|
|
|
, exempi
|
|
|
|
, shared-mime-info
|
2024-04-26 21:24:03 +01:00
|
|
|
, wrapGAppsHook3
|
2023-11-24 05:34:39 +00:00
|
|
|
, libjxl
|
2020-09-11 10:30:46 +01:00
|
|
|
, librsvg
|
2022-10-21 08:51:55 +01:00
|
|
|
, webp-pixbuf-loader
|
2023-01-26 21:21:28 +00:00
|
|
|
, libheif
|
2020-09-11 10:30:46 +01:00
|
|
|
, libexif
|
|
|
|
, gobject-introspection
|
2022-02-16 18:34:07 +00:00
|
|
|
, gi-docgen
|
2020-09-11 10:30:46 +01:00
|
|
|
}:
|
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";
|
2024-08-03 04:37:30 +01:00
|
|
|
version = "45.4";
|
2022-02-16 18:34:07 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-08-20 23:56:55 +01:00
|
|
|
url = "mirror://gnome/sources/eog/${lib.versions.major version}/eog-${version}.tar.xz";
|
2024-08-03 04:37:30 +01:00
|
|
|
sha256 = "sha256-tQ8yHHCsZK97yqW0Rg3GdbPKYP2tOFYW86x7dw4GZv4=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2022-04-03 18:01:27 +01:00
|
|
|
patches = [
|
|
|
|
# Fix path to libeog.so in the gir file.
|
|
|
|
# We patch gobject-introspection to hardcode absolute paths but
|
|
|
|
# our Meson patch will only pass the info when install_dir is absolute as well.
|
|
|
|
./fix-gir-lib-path.patch
|
|
|
|
];
|
|
|
|
|
2020-09-11 10:30:46 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
itstool
|
2024-04-26 21:24:03 +01:00
|
|
|
wrapGAppsHook3
|
2022-02-16 18:34:07 +00:00
|
|
|
libxml2 # for xmllint for xml-stripblanks
|
2020-09-11 10:30:46 +01:00
|
|
|
gobject-introspection
|
2022-02-16 18:34:07 +00:00
|
|
|
gi-docgen
|
2020-09-11 10:30:46 +01:00
|
|
|
];
|
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
|
2022-01-02 16:07:08 +00:00
|
|
|
libportal-gtk3
|
2020-09-11 10:30:46 +01:00
|
|
|
gtk3
|
2022-02-16 18:34:07 +00:00
|
|
|
libhandy
|
2020-09-11 10:30:46 +01:00
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
libpeas
|
|
|
|
librsvg
|
|
|
|
lcms2
|
|
|
|
gnome-desktop
|
|
|
|
libexif
|
|
|
|
exempi
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
shared-mime-info
|
2018-03-13 22:10:00 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2022-02-16 18:34:07 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
];
|
2018-03-13 22:10:00 +00:00
|
|
|
|
2022-10-21 08:51:55 +01:00
|
|
|
postInstall = ''
|
2023-11-24 05:34:39 +00:00
|
|
|
# Pull in WebP and JXL support for gnome-backgrounds.
|
2022-10-21 08:51:55 +01:00
|
|
|
# In postInstall to run before gappsWrapperArgsHook.
|
|
|
|
export GDK_PIXBUF_MODULE_FILE="${gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
|
|
|
|
extraLoaders = [
|
2023-11-24 05:34:39 +00:00
|
|
|
libjxl
|
2022-10-21 08:51:55 +01:00
|
|
|
librsvg
|
|
|
|
webp-pixbuf-loader
|
2023-01-26 21:21:28 +00:00
|
|
|
libheif.out
|
2022-10-21 08:51:55 +01:00
|
|
|
];
|
|
|
|
}}"
|
|
|
|
'';
|
|
|
|
|
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"
|
2023-11-24 05:34:39 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${libjxl}/share"
|
2019-01-14 21:29:08 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
|
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2022-02-16 18:34:07 +00:00
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
|
|
|
'';
|
|
|
|
|
2018-03-13 22:10:00 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2024-08-20 23:56:55 +01:00
|
|
|
packageName = "eog";
|
2018-03-13 22:10:00 +00:00
|
|
|
};
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "GNOME image viewer";
|
2024-05-01 06:03:10 +01:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/eog";
|
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;
|
2024-01-06 15:41:23 +00:00
|
|
|
mainProgram = "eog";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|