anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / kde / audiotube.nix
blob2f9937f106b61fa039549641645d6c4bdf3edd82
1 { lib
2 , mkDerivation
4 , extra-cmake-modules
5 , wrapGAppsHook3
7 , futuresql
8 , gst_all_1
9 , kcoreaddons
10 , kcrash
11 , ki18n
12 , kirigami2
13 , kirigami-addons
14 , kpurpose
15 , qcoro
16 , qtimageformats
17 , qtmultimedia
18 , qtquickcontrols2
19 , python3Packages
22 mkDerivation rec {
23   pname = "audiotube";
25   nativeBuildInputs = [
26     extra-cmake-modules
27     wrapGAppsHook3
28     python3Packages.wrapPython
29     python3Packages.pybind11
30   ];
32   buildInputs = [
33     futuresql
34     kcoreaddons
35     kcrash
36     ki18n
37     kirigami2
38     kirigami-addons
39     kpurpose
40     qcoro
41     qtimageformats
42     qtmultimedia
43     qtquickcontrols2
44   ] ++ (with gst_all_1; [
45     gst-plugins-bad
46     gst-plugins-base
47     gst-plugins-good
48     gstreamer
49   ]) ++ pythonPath;
51   pythonPath = with python3Packages; [
52     yt-dlp
53     ytmusicapi
54   ];
56   preFixup = ''
57     buildPythonPath "$pythonPath"
58     qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
59     qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
60   '';
61   dontWrapGApps = true;
63   meta = with lib; {
64     description = "Client for YouTube Music";
65     mainProgram = "audiotube";
66     homepage = "https://invent.kde.org/plasma-mobile/audiotube";
67     # https://invent.kde.org/plasma-mobile/audiotube/-/tree/c503d0607a3386112beaa9cf990ab85fe33ef115/LICENSES
68     license = with licenses; [ bsd2 cc0 gpl2Only gpl3Only ];
69     maintainers = [ ];
70   };