fix: nix flakes (#306)

This commit is contained in:
三咲雅 · Misaki Masa 2023-10-23 17:25:16 +08:00 committed by GitHub
parent 55187496fa
commit 93d8c30783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@ rustPlatform.buildRustPackage {
inherit version;
src = ../.;
YAZI_GEN_COMPLETIONS = true;
cargoLock.lockFile = ../Cargo.lock;
@ -57,9 +58,9 @@ rustPlatform.buildRustPackage {
wrapProgram $out/bin/yazi \
--prefix PATH : "${makeBinPath runtimePaths}"
installShellCompletion --cmd yazi \
--bash ./config/completions/yazi.bash \
--fish ./config/completions/yazi.fish \
--zsh ./config/completions/_yazi
--bash ./yazi-config/completions/yazi.bash \
--fish ./yazi-config/completions/yazi.fish \
--zsh ./yazi-config/completions/_yazi
'';
meta = with lib; {