diff options
author | Samuel Dionne-Riel <samuel@dionne-riel.com> | 2021-10-06 20:55:48 -0400 |
---|---|---|
committer | Samuel Dionne-Riel <samuel@dionne-riel.com> | 2021-10-19 20:42:59 -0400 |
commit | 2837f21ee941c86f49b298452a7e009e721c8eed (patch) | |
tree | 765abc72863a4f3f35332527943a317f0393f228 /pkgs | |
parent | b9ecb689753d392d49237823083aec626c73ea58 (diff) |
audiotube: init at 21.08
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/plasma-mobile/audiotube.nix | 61 | ||||
-rw-r--r-- | pkgs/applications/plasma-mobile/default.nix | 1 |
2 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/applications/plasma-mobile/audiotube.nix b/pkgs/applications/plasma-mobile/audiotube.nix new file mode 100644 index 0000000000000..1a1dedc7b4267 --- /dev/null +++ b/pkgs/applications/plasma-mobile/audiotube.nix @@ -0,0 +1,61 @@ +{ lib +, mkDerivation +, fetchpatch + +, extra-cmake-modules + +, kcoreaddons +, kcrash +, ki18n +, kirigami2 +, qtmultimedia +, qtquickcontrols2 +, python3Packages +}: + +mkDerivation rec { + pname = "audiotube"; + + patches = [ + # Fix compatibility with ytmusicapi 0.19.1 + (fetchpatch { + url = "https://invent.kde.org/plasma-mobile/audiotube/-/commit/734caa02805988200f923b88d1590b3f7dac8ac2.patch"; + sha256 = "0zq4f0w84dv0630bpvmqkfmhxbvibr2fxhzy6d2mnf098028gzyd"; + }) + ]; + + nativeBuildInputs = [ + extra-cmake-modules + python3Packages.wrapPython + python3Packages.pybind11 + ]; + + buildInputs = [ + kcoreaddons + kcrash + ki18n + kirigami2 + qtmultimedia + qtquickcontrols2 + python3Packages.youtube-dl + python3Packages.ytmusicapi + ]; + + pythonPath = [ + python3Packages.youtube-dl + python3Packages.ytmusicapi + ]; + + 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 ]; + }; +} diff --git a/pkgs/applications/plasma-mobile/default.nix b/pkgs/applications/plasma-mobile/default.nix index 04532ea18e142..643727834f992 100644 --- a/pkgs/applications/plasma-mobile/default.nix +++ b/pkgs/applications/plasma-mobile/default.nix @@ -62,6 +62,7 @@ let }; in { alligator = callPackage ./alligator.nix {}; + audiotube = callPackage ./audiotube.nix {}; calindori = callPackage ./calindori.nix {}; kalk = callPackage ./kalk.nix {}; kasts = callPackage ./kasts.nix {}; |