mirror of
https://github.com/NixOS/nixpkgs
synced 2024-10-19 03:47:13 -04:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
87 lines
1.6 KiB
Nix
87 lines
1.6 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, pkg-config
|
|
, meson
|
|
, gettext
|
|
, gobject-introspection
|
|
, glib
|
|
, gnome
|
|
, gtksourceview4
|
|
, gjs
|
|
, libsoup_3
|
|
, webkitgtk_4_1
|
|
, icu
|
|
, wrapGAppsHook
|
|
, gst_all_1
|
|
, gdk-pixbuf
|
|
, librsvg
|
|
, gtk3
|
|
, harfbuzz
|
|
, ninja
|
|
, libepoxy
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sushi";
|
|
version = "45.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/sushi/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
sha256 = "al8UsFo0cf5DhTzCsOGuVITX+fhvfqN2F5gpub9Kwd0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
gettext
|
|
gobject-introspection
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
gnome.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";
|
|
attrPath = "gnome.sushi";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://en.wikipedia.org/wiki/Sushi_(software)";
|
|
description = "A quick previewer for Nautilus";
|
|
mainProgram = "sushi";
|
|
maintainers = teams.gnome.members;
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|