2019-10-27 14:30:42 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkgconfig
|
|
|
|
, meson
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, glib
|
|
|
|
, clutter-gtk
|
|
|
|
, clutter-gst
|
|
|
|
, gnome3
|
|
|
|
, gtksourceview4
|
|
|
|
, gjs
|
|
|
|
, webkitgtk
|
|
|
|
, libmusicbrainz5
|
|
|
|
, icu
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gst_all_1
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
|
|
|
, gtk3
|
|
|
|
, harfbuzz
|
|
|
|
, ninja
|
|
|
|
, epoxy
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "sushi";
|
2019-09-02 17:45:59 +01:00
|
|
|
version = "3.34.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnome/sources/sushi/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-02 17:45:59 +01:00
|
|
|
sha256 = "1zcr8wi5bgvvpb5ha1v96aiaz4vqqrsn6cvvalwzah6am85k78m8";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-03-03 18:32:00 +00:00
|
|
|
nativeBuildInputs = [
|
2019-10-27 14:30:42 +00:00
|
|
|
pkgconfig
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
2019-03-03 18:32:00 +00:00
|
|
|
];
|
2018-09-05 01:52:36 +01:00
|
|
|
buildInputs = [
|
2019-10-27 14:30:42 +00:00
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
gnome3.evince
|
|
|
|
icu
|
|
|
|
harfbuzz
|
|
|
|
clutter-gtk
|
|
|
|
clutter-gst
|
|
|
|
gjs
|
|
|
|
gtksourceview4
|
|
|
|
gdk-pixbuf
|
|
|
|
librsvg
|
|
|
|
libmusicbrainz5
|
|
|
|
webkitgtk
|
|
|
|
epoxy
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
2018-09-05 01:52:36 +01:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-10-27 14:27:45 +00:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2018-09-05 01:52:36 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "sushi";
|
|
|
|
attrPath = "gnome3.sushi";
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = "https://en.wikipedia.org/wiki/Sushi_(software)";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "A quick previewer for Nautilus";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|