9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, cmake
|
|
, alsa-lib
|
|
, dbus
|
|
, fontconfig
|
|
, libsixel
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "spotify-player";
|
|
version = "0.14.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aome510";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-+YPtu3hsKvk2KskVSpqcFufnWL5PxN8+xbkcz/JXW6g=";
|
|
};
|
|
|
|
cargoHash = "sha256-WgQ+v9dJyriqq7+WpXpPhjdwm2Sr0jozA1oW2inSPik=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
alsa-lib
|
|
dbus
|
|
fontconfig
|
|
libsixel
|
|
];
|
|
|
|
buildNoDefaultFeatures = true;
|
|
|
|
buildFeatures = [
|
|
"rodio-backend"
|
|
"media-control"
|
|
"image"
|
|
"lyric-finder"
|
|
"daemon"
|
|
"notify"
|
|
"streaming"
|
|
"sixel"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A command driven spotify player";
|
|
homepage = "https://github.com/aome510/spotify-player";
|
|
changelog = "https://github.com/aome510/spotify-player/releases/tag/v${version}";
|
|
mainProgram = "spotify_player";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
};
|
|
}
|