Files
nixpkgs/pkgs/by-name/su/sushi/package.nix
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

90 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
meson,
gettext,
gobject-introspection,
evince,
glib,
gnome,
gtksourceview4,
gjs,
libsoup_3,
webkitgtk_4_1,
icu,
wrapGAppsHook3,
gst_all_1,
gdk-pixbuf,
librsvg,
gtk3,
harfbuzz,
ninja,
libepoxy,
}:
stdenv.mkDerivation rec {
pname = "sushi";
version = "46.0";
src = fetchurl {
url = "mirror://gnome/sources/sushi/${lib.versions.major version}/sushi-${version}.tar.xz";
hash = "sha256-lghbqqQwqyFCxgaqtcR+L7sv0+two1ITfmXFmlig8sY=";
};
nativeBuildInputs = [
pkg-config
meson
ninja
gettext
gobject-introspection
wrapGAppsHook3
];
buildInputs = [
glib
gtk3
evince
icu
harfbuzz
gjs
gtksourceview4
gdk-pixbuf
librsvg
libsoup_3
webkitgtk_4_1
libepoxy
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
];
# See https://github.com/NixOS/nixpkgs/issues/31168
postInstall = ''
for file in $out/libexec/org.gnome.NautilusPreviewer
do
sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \
-i $file
done
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "sushi";
};
};
meta = {
homepage = "https://gitlab.gnome.org/GNOME/sushi";
changelog = "https://gitlab.gnome.org/GNOME/sushi/-/blob/${version}/NEWS?ref_type=tags";
description = "Quick previewer for Nautilus";
mainProgram = "sushi";
teams = [ lib.teams.gnome ];
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
};
}