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-02-25 02:23:58 +00:00
|
|
|
, bash, wrapGAppsHook, itstool, libxml2, dbus-glib, vala, gnome3, librsvg
|
2017-10-04 22:50:14 +01:00
|
|
|
, gdk_pixbuf, file, tracker, nautilus }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-12-11 07:55:41 +00:00
|
|
|
# https://bugs.launchpad.net/ubuntu/+source/totem/+bug/1712021
|
2017-12-04 01:25:38 +00:00
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=784236
|
|
|
|
# https://github.com/mesonbuild/meson/issues/1994
|
2017-12-11 07:55:41 +00:00
|
|
|
enableParallelBuilding = false;
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${gnome3.glib.dev}/include/gio-unix-2.0";
|
|
|
|
|
2018-02-25 02:23:58 +00:00
|
|
|
propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
nativeBuildInputs = [ meson ninja vala pkgconfig intltool python3Packages.python itstool file wrapGAppsHook ];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ gtk3 glib gnome3.grilo clutter-gtk clutter-gst gnome3.totem-pl-parser gnome3.grilo-plugins
|
2017-10-04 22:50:14 +01:00
|
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad
|
2018-02-25 02:23:58 +00:00
|
|
|
gst_all_1.gst-plugins-ugly gst_all_1.gst-libav gnome3.libpeas shared-mime-info dbus-glib
|
|
|
|
gdk_pixbuf libxml2 gnome3.defaultIconTheme gnome3.gnome-desktop
|
|
|
|
gnome3.gsettings-desktop-schemas tracker nautilus ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ gobjectIntrospection python3Packages.pylint python3Packages.pygobject2 ];
|
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
name = "remove-pycompile.patch";
|
|
|
|
url = "https://bug787965.bugzilla-attachments.gnome.org/attachment.cgi?id=360204";
|
|
|
|
sha256 = "1iphlazllv42k553jqh3nqrrh5jb63gy3nhj4ipwc9xh4sg2irhi";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_compile_python.py meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
mesonFlags = [ "-Dwith-nautilusdir=lib/nautilus/extensions-3.0" ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
GI_TYPELIB_PATH = "$out/lib/girepository-1.0";
|
|
|
|
wrapPrefixVariables = [ "PYTHONPATH" ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|