2021-06-10 02:57:09 +00:00
|
|
|
{ fetchFromGitHub, rustPlatform, lib, alsa-lib, pkg-config, openssl }:
|
2020-12-25 04:15:16 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "netease-music-tui";
|
2021-12-07 17:03:32 +00:00
|
|
|
version = "0.1.4";
|
2020-12-25 04:15:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "betta-cyber";
|
|
|
|
repo = "netease-music-tui";
|
2021-04-05 16:57:54 +00:00
|
|
|
rev = "v${version}";
|
2021-12-07 17:03:32 +00:00
|
|
|
sha256 = "sha256-ILJkejRKG2DRXgR6O2tAFbrbd8HtnLZJmITq7hF41DQ=";
|
2020-12-25 04:15:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-06-10 02:57:09 +00:00
|
|
|
buildInputs = [ alsa-lib openssl ];
|
2020-12-25 04:15:16 +00:00
|
|
|
|
2021-12-07 17:03:32 +00:00
|
|
|
cargoSha256 = "sha256-/JQDUtSSkuO9nrYVSkQOaZjps1BUuH8Bc1SMyDSSJS4=";
|
2020-12-25 04:15:16 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/betta-cyber/netease-music-tui";
|
|
|
|
description = "netease cloud music terminal client by rust";
|
|
|
|
maintainers = with maintainers; [ vonfry ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|