2021-02-24 18:30:23 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, autoconf-archive
|
|
|
|
, clutter-gst
|
|
|
|
, clutter-gtk
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gst-plugins-bad
|
|
|
|
, gst-plugins-base
|
|
|
|
, gst-plugins-good
|
|
|
|
, gstreamer
|
|
|
|
, gtk-doc
|
|
|
|
, gtk3
|
|
|
|
, intltool
|
|
|
|
, itstool
|
|
|
|
, libpeas
|
|
|
|
, libxml2
|
|
|
|
, libxplayer-plparser
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-08-12 12:06:08 +00:00
|
|
|
, xapp
|
2021-02-24 18:30:23 +00:00
|
|
|
, yelp-tools }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xplayer";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.4.4";
|
2021-02-24 18:30:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-o2vLNIELd1EYWG26t5gOpnamJrBJeg4P6fcLirkcmfM=";
|
2021-02-24 18:30:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# configure wants to find gst-inspect-1.0 via pkgconfig but
|
|
|
|
# the gstreamer toolsdir points to the wrong derivation output
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
2022-02-10 20:34:41 +00:00
|
|
|
--replace '$gst10_toolsdir/gst-inspect-1.0' '${gstreamer}/bin/gst-inspect-1.0' \
|
2021-02-24 18:30:23 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(
|
|
|
|
"INCLUDES=-I${glib.dev}/include/gio-unix-2.0"
|
|
|
|
"CFLAGS=-Wno-error" # Otherwise a lot of deprecated warnings are treated as error
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2021-02-24 18:30:23 +00:00
|
|
|
autoconf-archive
|
|
|
|
gettext
|
|
|
|
gtk-doc
|
|
|
|
intltool
|
|
|
|
itstool
|
|
|
|
pkg-config
|
2024-01-25 14:12:00 +00:00
|
|
|
python3.pkgs.wrapPython
|
2021-02-24 18:30:23 +00:00
|
|
|
yelp-tools
|
2023-08-10 07:59:29 +00:00
|
|
|
gobject-introspection
|
2021-02-24 18:30:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
clutter-gst
|
|
|
|
clutter-gtk
|
|
|
|
glib
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gstreamer
|
|
|
|
gtk3
|
|
|
|
libpeas
|
|
|
|
libxml2
|
|
|
|
libxplayer-plparser
|
2024-01-25 14:12:00 +00:00
|
|
|
python3
|
2022-08-12 12:06:08 +00:00
|
|
|
xapp
|
2021-02-24 18:30:23 +00:00
|
|
|
# to satisfy configure script
|
2024-01-25 14:12:00 +00:00
|
|
|
python3.pkgs.pygobject3
|
2021-02-24 18:30:23 +00:00
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
postFixup = ''
|
|
|
|
buildPythonPath ${python3.pkgs.dbus-python}
|
|
|
|
patchPythonScript $out/lib/xplayer/plugins/dbus/dbusservice.py
|
2021-02-24 18:30:23 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Generic media player from Linux Mint";
|
2021-02-24 18:30:23 +00:00
|
|
|
license = with licenses; [ gpl2Plus lgpl21Plus ];
|
|
|
|
homepage = "https://github.com/linuxmint/xplayer";
|
2022-11-02 22:02:43 +00:00
|
|
|
maintainers = with maintainers; [ tu-maurice bobby285271 ];
|
2021-02-24 18:30:23 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|