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

28 lines
792 B
Nix
Raw Normal View History

2019-10-12 19:28:15 +03:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, Security }:
2019-10-12 16:22:04 +03:00
rustPlatform.buildRustPackage rec {
pname = "spotify-tui";
2019-11-16 20:21:25 +03:00
version = "0.9.0";
2019-10-16 15:38:18 +03:00
2019-10-12 16:22:04 +03:00
src = fetchFromGitHub {
owner = "Rigellute";
repo = "spotify-tui";
2019-10-16 15:38:18 +03:00
rev = "v${version}";
2019-11-16 20:21:25 +03:00
sha256 = "1bbh9df4gfgb5pqavgvmy8fqnr2j5rbqbanv0y31j4i0kv2wrh6a";
2019-10-12 16:22:04 +03:00
};
2019-10-29 12:20:00 +03:00
cargoSha256 = "1rb4dl9zn3xx2yrapx5cfsli93ggmdq8w9fqi8cy8giyja1mnqfl";
2019-10-12 16:22:04 +03:00
nativeBuildInputs = [ pkgconfig ];
2019-10-12 19:28:15 +03:00
buildInputs = [ openssl ]
++ stdenv.lib.optional stdenv.isDarwin Security;
2019-10-12 16:22:04 +03: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;
};
}