nixpkgs/pkgs/applications/audio/spotify-player/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-30 15:29:49 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, cmake
, alsa-lib
, dbus
, fontconfig
2023-06-03 07:26:20 +00:00
, libsixel
2023-01-30 15:29:49 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "spotify-player";
2023-06-03 07:26:20 +00:00
version = "0.14.1";
2023-01-30 15:29:49 +00:00
src = fetchFromGitHub {
owner = "aome510";
repo = pname;
2023-03-14 08:21:21 +00:00
rev = "refs/tags/v${version}";
2023-06-03 07:26:20 +00:00
hash = "sha256-+YPtu3hsKvk2KskVSpqcFufnWL5PxN8+xbkcz/JXW6g=";
2023-01-30 15:29:49 +00:00
};
2023-06-03 07:26:20 +00:00
cargoHash = "sha256-WgQ+v9dJyriqq7+WpXpPhjdwm2Sr0jozA1oW2inSPik=";
2023-01-30 15:29:49 +00:00
nativeBuildInputs = [
pkg-config
cmake
];
buildInputs = [
openssl
alsa-lib
dbus
fontconfig
2023-06-03 07:26:20 +00:00
libsixel
2023-01-30 15:29:49 +00:00
];
buildNoDefaultFeatures = true;
buildFeatures = [
"rodio-backend"
"media-control"
"image"
"lyric-finder"
2023-06-03 07:26:20 +00:00
"daemon"
"notify"
"streaming"
"sixel"
2023-01-30 15:29:49 +00:00
];
meta = with lib; {
description = "A command driven spotify player";
homepage = "https://github.com/aome510/spotify-player";
2023-03-14 08:21:21 +00:00
changelog = "https://github.com/aome510/spotify-player/releases/tag/v${version}";
2023-01-31 13:48:12 +00:00
mainProgram = "spotify_player";
2023-01-30 15:29:49 +00:00
license = licenses.mit;
maintainers = with maintainers; [ dit7ya ];
};
}