Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

84 lines
1.5 KiB
Nix

{
stdenv,
lib,
fetchFromGitLab,
glib,
meson,
ninja,
pkg-config,
wrapGAppsHook3,
cairo,
exo,
gtk3,
libexif,
libxfce4ui,
libxfce4util,
xfconf,
gnome,
libheif,
libjxl,
librsvg,
webp-pixbuf-loader,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ristretto";
version = "0.13.4";
src = fetchFromGitLab {
domain = "gitlab.xfce.org";
owner = "apps";
repo = "ristretto";
tag = "ristretto-${finalAttrs.version}";
hash = "sha256-X0liZddeEOxlo0tyn3Irvo0+MTnMFuvKY2m4h+/EI2E=";
};
strictDeps = true;
nativeBuildInputs = [
glib # glib-compile-schemas
meson
ninja
pkg-config
wrapGAppsHook3
];
buildInputs = [
cairo
exo
glib
gtk3
libexif
libxfce4ui
libxfce4util
xfconf
];
postInstall = ''
# Pull in HEIF, JXL and WebP support for ristretto.
# In postInstall to run before gappsWrapperArgsHook.
export GDK_PIXBUF_MODULE_FILE="${
gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
extraLoaders = [
libheif.out
libjxl
librsvg
webp-pixbuf-loader
];
}
}"
'';
passthru.updateScript = gitUpdater { rev-prefix = "ristretto-"; };
meta = {
description = "Fast and lightweight picture-viewer for the Xfce desktop environment";
homepage = "https://gitlab.xfce.org/apps/ristretto";
license = lib.licenses.gpl2Plus;
mainProgram = "ristretto";
teams = [ lib.teams.xfce ];
platforms = lib.platforms.linux;
};
})