2017-10-04 22:50:14 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, intltool, gst_all_1, clutter
|
2018-02-25 02:23:58 +00:00
|
|
|
, clutter-gtk, clutter-gst, python3Packages, shared-mime-info
|
2016-09-18 20:35:23 +01:00
|
|
|
, pkgconfig, gtk3, glib, gobjectIntrospection
|
2018-03-22 19:10:49 +00:00
|
|
|
, bash, wrapGAppsHook, itstool, libxml2, vala, gnome3, librsvg
|
|
|
|
, gdk_pixbuf, tracker, nautilus }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "totem-${version}";
|
2018-06-18 03:50:30 +01:00
|
|
|
version = "3.26.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/totem/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-06-18 03:50:30 +01:00
|
|
|
sha256 = "10n302fdp3lhkzbij5sbzmsnln738029xil6cnng2d4dxv4n1099";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${gnome3.glib.dev}/include/gio-unix-2.0";
|
|
|
|
|
2018-06-18 03:50:30 +01:00
|
|
|
nativeBuildInputs = [ meson ninja vala pkgconfig intltool python3Packages.python itstool gobjectIntrospection wrapGAppsHook ];
|
2018-03-22 19:10:49 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3 glib gnome3.grilo clutter-gtk clutter-gst gnome3.totem-pl-parser gnome3.grilo-plugins
|
|
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-ugly gst_all_1.gst-libav gnome3.libpeas shared-mime-info
|
|
|
|
gdk_pixbuf libxml2 gnome3.defaultIconTheme gnome3.gnome-desktop
|
|
|
|
gnome3.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 = [
|
|
|
|
"-Dwith-nautilusdir=lib/nautilus/extensions-3.0"
|
|
|
|
];
|
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;
|
|
|
|
};
|
|
|
|
}
|