2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, cmake
|
|
|
|
, alsa-lib
|
|
|
|
, dbus
|
|
|
|
, fontconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "spotify-player";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.12.1";
|
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}";
|
|
|
|
hash = "sha256-KHbeCnsdHP7Zsj9KeVLuumcVOW6m7Tz1GgBBQ25Rbyo=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
cargoHash = "sha256-51xKCiGdvJ8k9ArWBCazJGgRljqHxZiyTdes4i7JZH8=";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
alsa-lib
|
|
|
|
dbus
|
|
|
|
fontconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildNoDefaultFeatures = true;
|
|
|
|
|
|
|
|
buildFeatures = [
|
|
|
|
"rodio-backend"
|
|
|
|
"media-control"
|
|
|
|
"image"
|
|
|
|
"lyric-finder"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|