nixpkgs/pkgs/applications/kde/audiotube.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

71 lines
1.3 KiB
Nix

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