3
0
Fork 0
forked from mirrors/nixpkgs

audiotube: Add gst wrapping to fix playback

This commit is contained in:
Samuel Dionne-Riel 2022-11-30 23:48:42 -05:00
parent 371e0bbc7c
commit 832b15fcd6

View file

@ -3,7 +3,9 @@
, extra-cmake-modules
, gcc11
, wrapGAppsHook
, gst_all_1
, kcoreaddons
, kcrash
, ki18n
@ -19,6 +21,7 @@ mkDerivation rec {
nativeBuildInputs = [
extra-cmake-modules
wrapGAppsHook
gcc11 # doesn't build with GCC 9 from stdenv on aarch64
python3Packages.wrapPython
python3Packages.pybind11
@ -32,7 +35,12 @@ mkDerivation rec {
qtimageformats
qtmultimedia
qtquickcontrols2
] ++ pythonPath;
] ++ (with gst_all_1; [
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gstreamer
]) ++ pythonPath;
pythonPath = with python3Packages; [
yt-dlp
@ -42,7 +50,9 @@ mkDerivation rec {
preFixup = ''
buildPythonPath "$pythonPath"
qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
dontWrapGApps = true;
meta = with lib; {
description = "Client for YouTube Music";