mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
fcec23d1ac
Changelog: https://github.com/sxyazi/yazi/releases/tag/v0.2.4 Diff: https://github.com/sxyazi/yazi/compare/v0.2.3...v0.2.4
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ rustPlatform
|
|
, fetchFromGitHub
|
|
, lib
|
|
|
|
, installShellFiles
|
|
, stdenv
|
|
, Foundation
|
|
|
|
, nix-update-script
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "yazi";
|
|
version = "0.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sxyazi";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-c8fWWCOVBqQVdQch9BniCaJPrVEOCv35lLH8/hMIbvE=";
|
|
};
|
|
|
|
cargoHash = "sha256-VeDyO+KCD3Axse4iPIoRxIvoAn3L33e2ObBZFV/REeg=";
|
|
|
|
env.YAZI_GEN_COMPLETIONS = true;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Foundation ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd yazi \
|
|
--bash ./yazi-boot/completions/yazi.bash \
|
|
--fish ./yazi-boot/completions/yazi.fish \
|
|
--zsh ./yazi-boot/completions/_yazi
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Blazing fast terminal file manager written in Rust, based on async I/O";
|
|
homepage = "https://github.com/sxyazi/yazi";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ xyenon matthiasbeyer ];
|
|
mainProgram = "yazi";
|
|
};
|
|
}
|