diff --git a/pkgs/applications/audio/spotify-qt/default.nix b/pkgs/applications/audio/spotify-qt/default.nix new file mode 100644 index 000000000000..211e45f7b177 --- /dev/null +++ b/pkgs/applications/audio/spotify-qt/default.nix @@ -0,0 +1,36 @@ +{ fetchFromGitHub +, lib +, cmake +, mkDerivation +, libxcb +, qtbase +, qtsvg +}: + +mkDerivation rec { + pname = "spotify-qt"; + version = "3.5"; + + src = fetchFromGitHub { + owner = "kraxarn"; + repo = pname; + rev = "v${version}"; + sha256 = "1bgd0q4sbbww3lbrx2zwgaz0sl7qh195s4kvgsq16gv7ij82bskn"; + }; + + buildInputs = [ libxcb qtbase qtsvg ]; + + nativeBuildInputs = [ cmake ]; + + cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=" ]; + + installFlags = [ "DESTDIR=$(out)" ]; + + meta = with lib; { + description = "Lightweight unofficial Spotify client using Qt"; + homepage = "https://github.com/kraxarn/spotify-qt"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ kiyengar ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2865e0ab8f3d..d6c5ef1aa1c5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25504,6 +25504,8 @@ in split2flac = callPackage ../applications/audio/split2flac { }; + spotify-qt = libsForQt5.callPackage ../applications/audio/spotify-qt { }; + spotify-tui = callPackage ../applications/audio/spotify-tui { inherit (darwin.apple_sdk.frameworks) AppKit Security; };