2022-08-18 17:58:39 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-11-09 13:02:59 +00:00
|
|
|
, fetchurl
|
2022-08-18 17:58:39 +01:00
|
|
|
, fetchpatch
|
2020-11-09 13:02:59 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, gst_all_1
|
|
|
|
, python3Packages
|
|
|
|
, shared-mime-info
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2020-11-09 13:02:59 +00:00
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, totem-pl-parser
|
2024-04-26 21:24:03 +01:00
|
|
|
, wrapGAppsHook3
|
2020-11-09 13:02:59 +00:00
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, vala
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2020-11-09 13:02:59 +00:00
|
|
|
, grilo
|
|
|
|
, grilo-plugins
|
|
|
|
, libpeas
|
2022-07-23 16:46:49 +01:00
|
|
|
, libportal-gtk3
|
2022-02-27 11:11:35 +00:00
|
|
|
, libhandy
|
2020-11-09 13:02:59 +00:00
|
|
|
, adwaita-icon-theme
|
|
|
|
, gnome-desktop
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gdk-pixbuf
|
2021-05-08 14:45:03 +01:00
|
|
|
, xvfb-run
|
2020-11-09 13:02:59 +00:00
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "totem";
|
2022-09-17 00:39:11 +01:00
|
|
|
version = "43.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-08-20 23:56:55 +01:00
|
|
|
url = "mirror://gnome/sources/totem/${lib.versions.major version}/totem-${version}.tar.xz";
|
2022-09-17 00:39:11 +01:00
|
|
|
sha256 = "s202VZKLWJZGKk05+Dtq1m0328nJnc6wLqii43OUpB4=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2022-08-18 17:58:39 +01:00
|
|
|
patches = [
|
|
|
|
# Lower X11 dependency version since we do not have it.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/totem/-/commit/140d9eea70c3101ef3234abb4de5974cb84b13db.patch";
|
|
|
|
sha256 = "ohppxqMiH8Ksc9B2e3AXighfM6KVN+RNXYL+fLELSN8=";
|
|
|
|
revert = true;
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/totem/-/commit/2610b4536f73493587e4a5a38e01c9961fcabb96.patch";
|
|
|
|
sha256 = "nPfzS+LQuAlyQOz67hCdtx93w2frhgWlg1KGX5bEU38=";
|
|
|
|
revert = true;
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/totem/-/commit/5b871aee5292f25bbf39dca18045732e979e7a68.patch";
|
|
|
|
sha256 = "LqQLdgyZkIVc+/hQ5sdBLqhtjCVIMDSs9tjVXwMFodg=";
|
|
|
|
revert = true;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-11-09 13:02:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-11-09 13:02:59 +00:00
|
|
|
gettext
|
|
|
|
python3Packages.python
|
|
|
|
itstool
|
|
|
|
gobject-introspection
|
2024-04-26 21:24:03 +01:00
|
|
|
wrapGAppsHook3
|
2020-11-09 13:02:59 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:10:49 +00:00
|
|
|
buildInputs = [
|
2020-11-09 13:02:59 +00:00
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
grilo
|
|
|
|
totem-pl-parser
|
|
|
|
grilo-plugins
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
2022-02-27 11:11:35 +00:00
|
|
|
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
|
2020-11-09 13:02:59 +00:00
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-ugly
|
|
|
|
gst_all_1.gst-libav
|
|
|
|
libpeas
|
2022-07-23 16:46:49 +01:00
|
|
|
libportal-gtk3
|
2022-02-27 11:11:35 +00:00
|
|
|
libhandy
|
2020-11-09 13:02:59 +00:00
|
|
|
shared-mime-info
|
|
|
|
gdk-pixbuf
|
|
|
|
libxml2
|
|
|
|
adwaita-icon-theme
|
|
|
|
gnome-desktop
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
python3Packages.pygobject3
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-08 14:45:03 +01:00
|
|
|
xvfb-run
|
2017-10-04 22:50:14 +01:00
|
|
|
];
|
|
|
|
|
2020-09-18 16:16:57 +01:00
|
|
|
mesonFlags = [
|
|
|
|
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
|
|
|
|
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
|
|
|
|
];
|
|
|
|
|
2020-11-09 13:16:14 +00:00
|
|
|
# Tests do not work with GStreamer 1.18.
|
|
|
|
# https://gitlab.gnome.org/GNOME/totem/-/issues/450
|
|
|
|
doCheck = false;
|
2020-11-09 13:02:59 +00:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
postPatch = ''
|
2022-09-12 23:37:34 +01:00
|
|
|
chmod +x meson_compile_python.py # patchShebangs requires executable file
|
2020-11-09 13:02:59 +00:00
|
|
|
patchShebangs \
|
2022-09-12 23:37:34 +01:00
|
|
|
./meson_compile_python.py
|
2017-10-04 22:50:14 +01:00
|
|
|
'';
|
|
|
|
|
2019-03-03 18:32:28 +00:00
|
|
|
checkPhase = ''
|
2020-11-09 13:02:59 +00:00
|
|
|
runHook preCheck
|
|
|
|
|
2019-03-03 18:32:28 +00:00
|
|
|
xvfb-run -s '-screen 0 800x600x24' \
|
|
|
|
ninja test
|
2020-11-09 13:02:59 +00:00
|
|
|
|
|
|
|
runHook postCheck
|
2019-03-03 18:32:28 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-22 19:10:49 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-22 19:10:49 +00:00
|
|
|
packageName = "totem";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-05-01 06:03:10 +01:00
|
|
|
homepage = "https://apps.gnome.org/Totem/";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Movie player for the GNOME desktop based on GStreamer";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2020-11-09 13:02:59 +00:00
|
|
|
license = licenses.gpl2Plus; # with exception to allow use of non-GPL compatible plug-ins
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|