nixpkgs/pkgs/applications/kde/audiotube.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2021-10-07 00:55:48 +00:00
{ lib
, mkDerivation
, extra-cmake-modules
, wrapGAppsHook3
2021-10-07 00:55:48 +00:00
2023-08-24 10:59:41 +00:00
, futuresql
, gst_all_1
2021-10-07 00:55:48 +00:00
, kcoreaddons
, kcrash
, ki18n
, kirigami2
, kirigami-addons
, kpurpose
2023-08-24 10:59:41 +00:00
, qcoro
, qtimageformats
2021-10-07 00:55:48 +00:00
, qtmultimedia
, qtquickcontrols2
, python3Packages
}:
mkDerivation rec {
pname = "audiotube";
nativeBuildInputs = [
extra-cmake-modules
wrapGAppsHook3
2021-10-07 00:55:48 +00:00
python3Packages.wrapPython
python3Packages.pybind11
];
buildInputs = [
2023-08-24 10:59:41 +00:00
futuresql
2021-10-07 00:55:48 +00:00
kcoreaddons
kcrash
ki18n
kirigami2
kirigami-addons
kpurpose
2023-08-24 10:59:41 +00:00
qcoro
qtimageformats
2021-10-07 00:55:48 +00:00
qtmultimedia
qtquickcontrols2
] ++ (with gst_all_1; [
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gstreamer
]) ++ pythonPath;
2021-10-07 00:55:48 +00:00
pythonPath = with python3Packages; [
yt-dlp
ytmusicapi
2021-10-07 00:55:48 +00:00
];
preFixup = ''
buildPythonPath "$pythonPath"
qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
2021-10-07 00:55:48 +00:00
'';
dontWrapGApps = true;
2021-10-07 00:55:48 +00:00
meta = with lib; {
description = "Client for YouTube Music";
mainProgram = "audiotube";
2021-10-07 00:55:48 +00:00
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 = [ ];
2021-10-07 00:55:48 +00:00
};
}