4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
53 lines
940 B
Nix
53 lines
940 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, cmake
|
|
, alsa-lib
|
|
, dbus
|
|
, fontconfig
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "spotify-player";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aome510";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-nWXXaRHTzCXmu4eKw88pKuWXgdG9n7azPeBbXYz+Fio=";
|
|
};
|
|
|
|
cargoHash = "sha256-y/qHiwZes4nVtjbFN/jL2LFugGpRKnYij7+XXZbqguQ=";
|
|
|
|
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";
|
|
mainProgram = "spotify_player";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
};
|
|
}
|