2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, cmake
|
|
|
|
, alsa-lib
|
|
|
|
, dbus
|
|
|
|
, fontconfig
|
2023-07-15 17:15:38 +00:00
|
|
|
, libsixel
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "spotify-player";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.15.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aome510";
|
|
|
|
repo = pname;
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-5+YBlXHpAzGgw6MqgnMSggCASS++A/WWomftX8Jxe7g=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
cargoHash = "sha256-PIYaJC3rVbPjc2CASzMGWAzUdrBwFnKqhrZO6nywdN8=";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
alsa-lib
|
|
|
|
dbus
|
|
|
|
fontconfig
|
2023-07-15 17:15:38 +00:00
|
|
|
libsixel
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildNoDefaultFeatures = true;
|
|
|
|
|
|
|
|
buildFeatures = [
|
|
|
|
"rodio-backend"
|
|
|
|
"media-control"
|
|
|
|
"image"
|
|
|
|
"lyric-finder"
|
2023-07-15 17:15:38 +00:00
|
|
|
"daemon"
|
|
|
|
"notify"
|
|
|
|
"streaming"
|
|
|
|
"sixel"
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command driven spotify player";
|
|
|
|
homepage = "https://github.com/aome510/spotify-player";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/aome510/spotify-player/releases/tag/v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
mainProgram = "spotify_player";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
|
|
};
|
|
|
|
}
|