2021-10-07 01:55:48 +01:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
|
|
|
|
, extra-cmake-modules
|
2022-05-10 05:56:18 +01:00
|
|
|
, gcc11
|
2021-10-07 01:55:48 +01:00
|
|
|
|
|
|
|
, kcoreaddons
|
|
|
|
, kcrash
|
|
|
|
, ki18n
|
|
|
|
, kirigami2
|
|
|
|
, qtmultimedia
|
|
|
|
, qtquickcontrols2
|
|
|
|
, python3Packages
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "audiotube";
|
|
|
|
|
2022-08-24 17:34:39 +01:00
|
|
|
postPatch = "sed '1i#include <iostream>' -i src/ytmusic.cpp";
|
|
|
|
|
2021-10-07 01:55:48 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
extra-cmake-modules
|
2022-05-10 05:56:18 +01:00
|
|
|
gcc11 # doesn't build with GCC 9 from stdenv on aarch64
|
2021-10-07 01:55:48 +01:00
|
|
|
python3Packages.wrapPython
|
|
|
|
python3Packages.pybind11
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
kcoreaddons
|
|
|
|
kcrash
|
|
|
|
ki18n
|
|
|
|
kirigami2
|
|
|
|
qtmultimedia
|
|
|
|
qtquickcontrols2
|
2021-12-30 21:16:56 +00:00
|
|
|
] ++ pythonPath;
|
2021-10-07 01:55:48 +01:00
|
|
|
|
2021-12-30 21:16:56 +00:00
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
yt-dlp
|
|
|
|
ytmusicapi
|
2021-10-07 01:55:48 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
buildPythonPath "$pythonPath"
|
|
|
|
qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Client for YouTube Music";
|
|
|
|
homepage = "https://invent.kde.org/plasma-mobile/audiotube";
|
|
|
|
# https://invent.kde.org/plasma-mobile/audiotube/-/tree/c503d0607a3386112beaa9cf990ab85fe33ef115/LICENSES
|
|
|
|
license = with licenses; [ bsd2 cc0 gpl2Only gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ samueldr ];
|
|
|
|
};
|
|
|
|
}
|