Skip to content

Commit

Permalink
spotify-cli: init at 0.3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivolt committed Jan 27, 2024
1 parent 4f34f35 commit e7ed6ac
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/applications/audio/spotify-cli/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ lib, python3Packages, fetchFromGitHub, buildPythonPackage }:

buildPythonPackage rec {
pname = "spotify-cli";
version = "0.3.12";

src = fetchFromGitHub {
owner = "ledesmablt";
repo = pname;
rev = "8e0ad476079a722a39dd2072195c6b4562d18a4d";
sha256 = "sha256-KSlv+O1XQPFrRyxx8/+lCzWryp+9aXpB5CvhEM9w1wA=";
};

propagatedBuildInputs = with python3Packages; [
click
inquirerpy
tabulate
];

preBuild = ''
export RELEASE_VERSION=${version}
'';

doCheck = false;

meta = with lib; {
description = "Control Spotify playback on any device through the command line.";
homepage = "https://github.com/ledesmablt/spotify-cli";
license = licenses.mit;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32564,6 +32564,10 @@ with pkgs;

spot = callPackage ../applications/audio/spot { };

spotify-cli = callPackage ../applications/audio/spotify-cli {
inherit (python3Packages) buildPythonPackage;
};

spotify-cli-linux = callPackage ../applications/audio/spotify-cli-linux { };

spotifyd = callPackage ../applications/audio/spotifyd {
Expand Down

0 comments on commit e7ed6ac

Please sign in to comment.