nixpkgs/pkgs/applications/kde/audiotube.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

81 lines
1.4 KiB
Nix

{
lib,
mkDerivation,
extra-cmake-modules,
wrapGAppsHook3,
futuresql,
gst_all_1,
kcoreaddons,
kcrash,
ki18n,
kirigami2,
kirigami-addons,
kpurpose,
qcoro,
qtimageformats,
qtmultimedia,
qtquickcontrols2,
python3Packages,
}:
mkDerivation rec {
pname = "audiotube";
nativeBuildInputs = [
extra-cmake-modules
wrapGAppsHook3
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 = [ ];
};
}