2022-08-18 16:58:39 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-11-09 13:02:59 +00:00
|
|
|
, fetchurl
|
|
|
|
, 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 20:24:03 +00:00
|
|
|
, wrapGAppsHook3
|
2020-11-09 13:02:59 +00:00
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, vala
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2020-11-09 13:02:59 +00:00
|
|
|
, grilo
|
|
|
|
, grilo-plugins
|
|
|
|
, libpeas
|
2022-07-23 15:46:49 +00: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 13:45:03 +00:00
|
|
|
, xvfb-run
|
2020-11-09 13:02:59 +00:00
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "totem";
|
2024-10-31 12:28:28 +00:00
|
|
|
version = "43.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-08-20 22:56:55 +00:00
|
|
|
url = "mirror://gnome/sources/totem/${lib.versions.major version}/totem-${version}.tar.xz";
|
2024-10-31 12:28:28 +00:00
|
|
|
hash = "sha256-VmgpHpxkRJhcs//k6k8CEvVMK75g3QERTBqVD5R1nm0=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
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 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2020-11-09 13:02:59 +00:00
|
|
|
];
|
2016-09-18 19:35:23 +00: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 15:46:49 +00: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 13:45:03 +00:00
|
|
|
xvfb-run
|
2017-10-04 21:50:14 +00:00
|
|
|
];
|
|
|
|
|
2020-09-18 15:16:57 +00:00
|
|
|
mesonFlags = [
|
|
|
|
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
|
|
|
|
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
|
|
|
|
];
|
|
|
|
|
2024-10-31 14:42:08 +00:00
|
|
|
doCheck = true;
|
2020-11-09 13:02:59 +00:00
|
|
|
|
2017-10-04 21:50:14 +00:00
|
|
|
postPatch = ''
|
2022-09-12 22:37:34 +00:00
|
|
|
chmod +x meson_compile_python.py # patchShebangs requires executable file
|
2020-11-09 13:02:59 +00:00
|
|
|
patchShebangs \
|
2022-09-12 22:37:34 +00:00
|
|
|
./meson_compile_python.py
|
2017-10-04 21:50:14 +00: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' \
|
2024-10-31 14:42:08 +00:00
|
|
|
meson test --print-errorlogs
|
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 21:18:14 +00: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 05:03:10 +00:00
|
|
|
homepage = "https://apps.gnome.org/Totem/";
|
2024-10-04 19:35:12 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/GNOME/totem/-/blob/${version}/NEWS?ref_type=tags";
|
2016-09-18 19:35:23 +00:00
|
|
|
description = "Movie player for the GNOME desktop based on GStreamer";
|
2020-04-01 12:40:51 +00: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 19:35:23 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|