depot/pkgs/by-name/su/sushi/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

87 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 = with lib; {
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";
maintainers = teams.gnome.members;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}