Skip to content

Commit

Permalink
fix: nix flakes (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi authored Oct 23, 2023
1 parent 5518749 commit 93d8c30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nix/yazi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ rustPlatform.buildRustPackage {
inherit version;

src = ../.;
YAZI_GEN_COMPLETIONS = true;

cargoLock.lockFile = ../Cargo.lock;

Expand All @@ -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; {
Expand Down

0 comments on commit 93d8c30

Please sign in to comment.