12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
20 hash = "sha256-bTDf8muJN0G4+c6UagtWgNLlmGN15twEBjdmKEP0bCE=";
23 cargoHash = "sha256-8UsdanF8y4uFoXdC7aAw7pVFRd9GACcfVvqkUtFmN5k=";
25 env.YAZI_GEN_COMPLETIONS = true;
26 env.VERGEN_GIT_SHA = "Nixpkgs";
27 env.VERGEN_BUILD_DATE = "2024-09-04";
29 nativeBuildInputs = [ installShellFiles ];
30 buildInputs = [ rust-jemalloc-sys ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Foundation ];
33 installShellCompletion --cmd yazi \
34 --bash ./yazi-boot/completions/yazi.bash \
35 --fish ./yazi-boot/completions/yazi.fish \
36 --zsh ./yazi-boot/completions/_yazi
38 install -Dm444 assets/yazi.desktop -t $out/share/applications
39 install -Dm444 assets/logo.png $out/share/pixmaps/yazi.png
42 passthru.updateScript.command = [ ./update.sh ];
45 description = "Blazing fast terminal file manager written in Rust, based on async I/O";
46 homepage = "https://github.com/sxyazi/yazi";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [