2021-06-28 23:13:55 +00:00
|
|
|
{ fetchFromGitHub, rustPlatform, lib, alsa-lib, pkg-config, openssl }:
|
2020-12-27 14:24:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "netease-music-tui";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "0.1.5";
|
2020-12-27 14:24:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "betta-cyber";
|
|
|
|
repo = "netease-music-tui";
|
2021-04-08 16:26:57 +00:00
|
|
|
rev = "v${version}";
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-+zRXihWg65DtyX3yD04CsW8aXIvNph36PW2veeg36lg=";
|
2020-12-27 14:24:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ alsa-lib openssl ];
|
2020-12-27 14:24:52 +00:00
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
cargoSha256 = "sha256-i+W/KwnqdaHcrdaWYUuCUeFlRKekVuEvFh/pxDolPNU=";
|
2020-12-27 14:24:52 +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;
|
|
|
|
};
|
|
|
|
}
|