nixpkgs/pkgs/applications/audio/netease-music-tui/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
842 B
Nix
Raw Normal View History

{ fetchFromGitHub, rustPlatform, lib, alsa-lib, pkg-config, openssl }:
2020-12-25 04:15:16 +00:00
rustPlatform.buildRustPackage rec {
pname = "netease-music-tui";
2022-11-19 03:47:21 +00:00
version = "0.1.5";
2020-12-25 04:15:16 +00:00
src = fetchFromGitHub {
owner = "betta-cyber";
repo = "netease-music-tui";
rev = "v${version}";
2022-11-19 03:47:21 +00:00
sha256 = "sha256-+zRXihWg65DtyX3yD04CsW8aXIvNph36PW2veeg36lg=";
2020-12-25 04:15:16 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
2020-12-25 04:15:16 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ alsa-lib openssl ];
2020-12-25 04:15:16 +00:00
2022-11-19 03:47:21 +00:00
cargoSha256 = "sha256-i+W/KwnqdaHcrdaWYUuCUeFlRKekVuEvFh/pxDolPNU=";
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;
};
}