2019-03-03 19:32:28 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, gettext, gst_all_1
|
2018-02-25 03:23:58 +01:00
|
|
|
, clutter-gtk, clutter-gst, python3Packages, shared-mime-info
|
2018-12-25 23:27:49 +01:00
|
|
|
, pkgconfig, gtk3, glib, gobject-introspection, totem-pl-parser
|
2019-02-13 22:47:50 +01:00
|
|
|
, wrapGAppsHook, itstool, libxml2, vala, gnome3, grilo, grilo-plugins
|
|
|
|
, libpeas, adwaita-icon-theme, gnome-desktop, gsettings-desktop-schemas
|
2019-05-22 13:03:39 +02:00
|
|
|
, gdk-pixbuf, tracker, nautilus, xvfb_run }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "totem";
|
2019-10-07 07:52:54 +02:00
|
|
|
version = "3.34.1";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://gnome/sources/totem/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-10-07 07:52:54 +02:00
|
|
|
sha256 = "028sc6xbyi7rs884862d8f3di6zhcm0lhvlpc3r69ifzjsq9my3b";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2019-03-03 19:32:28 +01:00
|
|
|
nativeBuildInputs = [ meson ninja vala pkgconfig gettext python3Packages.python itstool gobject-introspection wrapGAppsHook ];
|
2018-03-22 20:10:49 +01:00
|
|
|
buildInputs = [
|
2019-02-13 22:47:50 +01:00
|
|
|
gtk3 glib grilo clutter-gtk clutter-gst totem-pl-parser grilo-plugins
|
2018-03-22 20:10:49 +01:00
|
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad
|
2019-02-13 22:47:50 +01:00
|
|
|
gst_all_1.gst-plugins-ugly gst_all_1.gst-libav libpeas shared-mime-info
|
2019-05-22 13:03:39 +02:00
|
|
|
gdk-pixbuf libxml2 adwaita-icon-theme gnome-desktop
|
2019-02-13 22:47:50 +01:00
|
|
|
gsettings-desktop-schemas tracker nautilus
|
2018-06-18 04:50:30 +02:00
|
|
|
python3Packages.pygobject3 python3Packages.dbus-python # for plug-ins
|
2017-10-04 23:50:14 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_compile_python.py meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2019-03-03 19:32:28 +01:00
|
|
|
checkInputs = [ xvfb_run ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' \
|
|
|
|
ninja test
|
|
|
|
'';
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
wrapPrefixVariables = [ "PYTHONPATH" ];
|
|
|
|
|
2018-03-22 20:10:49 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "totem";
|
|
|
|
attrPath = "gnome3.totem";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Videos";
|
2016-09-18 21:35:23 +02:00
|
|
|
description = "Movie player for the GNOME desktop based on GStreamer";
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 21:35:23 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|