aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/core/totem/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/core/totem/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/core/totem/default.nix106
1 files changed, 86 insertions, 20 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/core/totem/default.nix b/infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/core/totem/default.nix
index 50ab50e58b2c..58ee706b1cfc 100644
--- a/infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/core/totem/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/desktops/gnome-3/core/totem/default.nix
@@ -1,41 +1,107 @@
-{ stdenv, fetchurl, meson, ninja, gettext, gst_all_1
-, clutter-gtk, clutter-gst, python3Packages, shared-mime-info
-, pkgconfig, gtk3, glib, gobject-introspection, totem-pl-parser
-, wrapGAppsHook, itstool, libxml2, vala, gnome3, grilo, grilo-plugins
-, libpeas, adwaita-icon-theme, gnome-desktop, gsettings-desktop-schemas
-, gdk-pixbuf, tracker, nautilus, xvfb_run }:
+{ stdenv
+, fetchurl
+, meson
+, ninja
+, gettext
+, gst_all_1
+, clutter-gtk
+, clutter-gst
+, python3Packages
+, shared-mime-info
+, pkgconfig
+, gtk3
+, glib
+, gobject-introspection
+, totem-pl-parser
+, wrapGAppsHook
+, itstool
+, libxml2
+, vala
+, gnome3
+, grilo
+, grilo-plugins
+, libpeas
+, adwaita-icon-theme
+, gnome-desktop
+, gsettings-desktop-schemas
+, gdk-pixbuf
+, xvfb_run
+}:
stdenv.mkDerivation rec {
pname = "totem";
- version = "3.34.1";
+ version = "3.38.0";
src = fetchurl {
url = "mirror://gnome/sources/totem/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
- sha256 = "028sc6xbyi7rs884862d8f3di6zhcm0lhvlpc3r69ifzjsq9my3b";
+ sha256 = "0bs33ijvxbr2prb9yj4dxglsszslsn9k258n311sld84masz4ad8";
};
- doCheck = true;
+ nativeBuildInputs = [
+ meson
+ ninja
+ vala
+ pkgconfig
+ gettext
+ python3Packages.python
+ itstool
+ gobject-introspection
+ wrapGAppsHook
+ ];
- nativeBuildInputs = [ meson ninja vala pkgconfig gettext python3Packages.python itstool gobject-introspection wrapGAppsHook ];
buildInputs = [
- gtk3 glib grilo clutter-gtk clutter-gst totem-pl-parser 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 libpeas shared-mime-info
- gdk-pixbuf libxml2 adwaita-icon-theme gnome-desktop
- gsettings-desktop-schemas tracker nautilus
- python3Packages.pygobject3 python3Packages.dbus-python # for plug-ins
+ gtk3
+ glib
+ grilo
+ clutter-gtk
+ clutter-gst
+ totem-pl-parser
+ 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
+ libpeas
+ shared-mime-info
+ gdk-pixbuf
+ libxml2
+ adwaita-icon-theme
+ gnome-desktop
+ gsettings-desktop-schemas
+ # for plug-ins
+ python3Packages.pygobject3
+ python3Packages.dbus-python
+ ];
+
+ checkInputs = [
+ xvfb_run
+ ];
+
+ mesonFlags = [
+ # TODO: https://github.com/NixOS/nixpkgs/issues/36468
+ "-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
];
+ # Tests do not work with GStreamer 1.18.
+ # https://gitlab.gnome.org/GNOME/totem/-/issues/450
+ doCheck = false;
+
postPatch = ''
chmod +x meson_compile_python.py meson_post_install.py # patchShebangs requires executable file
- patchShebangs .
+ patchShebangs \
+ ./meson_compile_python.py \
+ ./meson_post_install.py
'';
- checkInputs = [ xvfb_run ];
-
checkPhase = ''
+ runHook preCheck
+
xvfb-run -s '-screen 0 800x600x24' \
ninja test
+
+ runHook postCheck
'';
wrapPrefixVariables = [ "PYTHONPATH" ];
@@ -51,7 +117,7 @@ stdenv.mkDerivation rec {
homepage = "https://wiki.gnome.org/Apps/Videos";
description = "Movie player for the GNOME desktop based on GStreamer";
maintainers = teams.gnome.members;
- license = licenses.gpl2;
+ license = licenses.gpl2Plus; # with exception to allow use of non-GPL compatible plug-ins
platforms = platforms.linux;
};
}