2021-06-10 03:57:09 +01: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-04-05 17:57:54 +01:00
|
|
|
version = "0.1.3";
|
2020-12-25 04:15:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "betta-cyber";
|
|
|
|
repo = "netease-music-tui";
|
2021-04-05 17:57:54 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "09355a6d197ckayh9833y39dsarklgpgrq3raapiv25z59di30qq";
|
2020-12-25 04:15:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-06-10 03:57:09 +01:00
|
|
|
buildInputs = [ alsa-lib openssl ];
|
2020-12-25 04:15:16 +00:00
|
|
|
|
2021-05-07 12:00:49 +01:00
|
|
|
cargoSha256 = "1pca0sz4rz8qls6k2vhf70ixhnvgk81c4hbx81q3pv106g5k205f";
|
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;
|
|
|
|
};
|
|
|
|
}
|