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

28 lines
792 B
Nix
Raw Normal View History

2019-10-12 16:28:15 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, Security }:
2019-10-12 13:22:04 +00:00
rustPlatform.buildRustPackage rec {
pname = "spotify-tui";
2019-10-16 12:38:18 +00:00
version = "0.6.2";
2019-10-12 13:22:04 +00:00
src = fetchFromGitHub {
owner = "Rigellute";
repo = "spotify-tui";
2019-10-16 12:38:18 +00:00
rev = "v${version}";
sha256 = "0ksrdavnvjpph7h0lcc2hvxhygfbn0dmsabq2ilslvpa80ph2c53";
2019-10-12 13:22:04 +00:00
};
cargoSha256 = "029g80mcqvmckszpbzm4hxs5w63n41ah4rc1b93i9c1nzvncd811";
2019-10-12 16:28:15 +00:00
2019-10-12 13:22:04 +00:00
nativeBuildInputs = [ pkgconfig ];
2019-10-12 16:28:15 +00:00
buildInputs = [ openssl ]
++ stdenv.lib.optional stdenv.isDarwin Security;
2019-10-12 13:22:04 +00:00
meta = with stdenv.lib; {
description = "Spotify for the terminal written in Rust";
homepage = https://github.com/Rigellute/spotify-tui;
license = licenses.mit;
maintainers = with maintainers; [ jwijenbergh ];
platforms = platforms.all;
};
}