mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
95 lines
1.9 KiB
Nix
95 lines
1.9 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, autoconf-archive
|
|
, clutter-gst
|
|
, clutter-gtk
|
|
, gettext
|
|
, glib
|
|
, gobject-introspection
|
|
, gst_all_1
|
|
, gtk-doc
|
|
, gtk3
|
|
, intltool
|
|
, itstool
|
|
, libpeas
|
|
, libxml2
|
|
, libxplayer-plparser
|
|
, pkg-config
|
|
, python3
|
|
, wrapGAppsHook3
|
|
, xapp
|
|
, yelp-tools }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xplayer";
|
|
version = "2.4.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-o2vLNIELd1EYWG26t5gOpnamJrBJeg4P6fcLirkcmfM=";
|
|
};
|
|
|
|
# configure wants to find gst-inspect-1.0 via pkgconfig but
|
|
# the gstreamer toolsdir points to the wrong derivation output
|
|
postPatch = ''
|
|
substituteInPlace configure.ac \
|
|
--replace '$gst10_toolsdir/gst-inspect-1.0' '${gst_all_1.gstreamer}/bin/gst-inspect-1.0' \
|
|
'';
|
|
|
|
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
|
|
wrapGAppsHook3
|
|
autoconf-archive
|
|
gettext
|
|
gtk-doc
|
|
intltool
|
|
itstool
|
|
pkg-config
|
|
python3.pkgs.wrapPython
|
|
yelp-tools
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
clutter-gst
|
|
clutter-gtk
|
|
glib
|
|
gst_all_1.gst-plugins-bad
|
|
gst_all_1.gst-plugins-base
|
|
gst_all_1.gst-plugins-good
|
|
gst_all_1.gstreamer
|
|
gtk3
|
|
libpeas
|
|
libxml2
|
|
libxplayer-plparser
|
|
python3
|
|
xapp
|
|
# to satisfy configure script
|
|
python3.pkgs.pygobject3
|
|
];
|
|
|
|
postFixup = ''
|
|
buildPythonPath ${python3.pkgs.dbus-python}
|
|
patchPythonScript $out/lib/xplayer/plugins/dbus/dbusservice.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Generic media player from Linux Mint";
|
|
license = with licenses; [ gpl2Plus lgpl21Plus ];
|
|
homepage = "https://github.com/linuxmint/xplayer";
|
|
maintainers = with maintainers; [ tu-maurice bobby285271 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|