2019-03-03 18:32:28 +00:00
|
|
|
{ stdenv, fetchurl, meson, ninja, gettext, gst_all_1
|
2018-02-25 02:23:58 +00:00
|
|
|
, clutter-gtk, clutter-gst, python3Packages, shared-mime-info
|
2018-12-25 22:27:49 +00:00
|
|
|
, pkgconfig, gtk3, glib, gobject-introspection, totem-pl-parser
|
2019-02-13 21:47:50 +00:00
|
|
|
, wrapGAppsHook, itstool, libxml2, vala, gnome3, grilo, grilo-plugins
|
|
|
|
, libpeas, adwaita-icon-theme, gnome-desktop, gsettings-desktop-schemas
|
2019-05-22 12:03:39 +01:00
|
|
|
, gdk-pixbuf, tracker, nautilus, xvfb_run }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "totem";
|
2019-07-17 04:03:25 +01:00
|
|
|
version = "3.32.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnome/sources/totem/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-07-17 04:03:25 +01:00
|
|
|
sha256 = "0yra8apc7smpwf7d1k8crhrm8d4wix24ds6i9yxbch1v11jnhr3v";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2019-03-03 18:32:28 +00:00
|
|
|
nativeBuildInputs = [ meson ninja vala pkgconfig gettext python3Packages.python itstool gobject-introspection wrapGAppsHook ];
|
2018-03-22 19:10:49 +00:00
|
|
|
buildInputs = [
|
2019-02-13 21:47:50 +00:00
|
|
|
gtk3 glib grilo clutter-gtk clutter-gst totem-pl-parser grilo-plugins
|
2018-03-22 19:10:49 +00: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 21:47:50 +00:00
|
|
|
gst_all_1.gst-plugins-ugly gst_all_1.gst-libav libpeas shared-mime-info
|
2019-05-22 12:03:39 +01:00
|
|
|
gdk-pixbuf libxml2 adwaita-icon-theme gnome-desktop
|
2019-02-13 21:47:50 +00:00
|
|
|
gsettings-desktop-schemas tracker nautilus
|
2018-06-18 03:50:30 +01:00
|
|
|
python3Packages.pygobject3 python3Packages.dbus-python # for plug-ins
|
2017-10-04 22:50:14 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_compile_python.py meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2018-06-09 17:45:44 +01:00
|
|
|
mesonFlags = [
|
2018-04-26 21:59:34 +01:00
|
|
|
"-Dwith-nautilusdir=${placeholder "out"}/lib/nautilus/extensions-3.0"
|
2018-07-15 15:26:41 +01:00
|
|
|
# https://bugs.launchpad.net/ubuntu/+source/totem/+bug/1712021
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=784236
|
|
|
|
# https://github.com/mesonbuild/meson/issues/1994
|
|
|
|
"-Denable-vala=no"
|
2018-06-09 17:45:44 +01:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-03-03 18:32:28 +00:00
|
|
|
checkInputs = [ xvfb_run ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' \
|
|
|
|
ninja test
|
|
|
|
'';
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
wrapPrefixVariables = [ "PYTHONPATH" ];
|
|
|
|
|
2018-03-22 19:10:49 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "totem";
|
|
|
|
attrPath = "gnome3.totem";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Videos;
|
|
|
|
description = "Movie player for the GNOME desktop based on GStreamer";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|