diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2024-07-02 08:03:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 08:03:53 +0200 |
commit | 0f56e3221392452f2c38e3ddf2eba03abda6bf47 (patch) | |
tree | b3e629da120df8c680944188166b1353b346a317 /pkgs/by-name/su/sushi/package.nix | |
parent | c9073dfafdd94ada4ae1b78e89a2a6155373e224 (diff) | |
parent | 2413b5165263d292cfe49d42ca7ff3c9ffe95318 (diff) |
Merge pull request #319659 from jtojnar/gnome-extract
Move various packages out of gnome scope
Diffstat (limited to 'pkgs/by-name/su/sushi/package.nix')
-rw-r--r-- | pkgs/by-name/su/sushi/package.nix | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/pkgs/by-name/su/sushi/package.nix b/pkgs/by-name/su/sushi/package.nix new file mode 100644 index 0000000000000..aad4727da20b1 --- /dev/null +++ b/pkgs/by-name/su/sushi/package.nix @@ -0,0 +1,86 @@ +{ 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}/${pname}-${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://en.wikipedia.org/wiki/Sushi_(software)"; + description = "Quick previewer for Nautilus"; + mainProgram = "sushi"; + maintainers = teams.gnome.members; + license = licenses.gpl2Plus; + platforms = platforms.linux; + }; +} |