Skip to content

Commit

Permalink
yazi-unwrapped: build new yazi-cli tool
Browse files Browse the repository at this point in the history
In addition to the main program, there is a new CLI tool, now:
sxyazi/yazi#914
  • Loading branch information
eljamm authored and Gavin John committed Jul 4, 2024
1 parent 7d56789 commit b24a502
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/by-name/ya/yazi-unwrapped/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ rustPlatform.buildRustPackage rec {

env.YAZI_GEN_COMPLETIONS = true;

# TODO: remove in the next release
cargoBuildFlags = ["-p" "yazi-fm" "-p" "yazi-cli"];

nativeBuildInputs = [ installShellFiles ];
buildInputs = [ rust-jemalloc-sys ] ++ lib.optionals stdenv.isDarwin [ Foundation ];

Expand Down
1 change: 1 addition & 0 deletions pkgs/by-name/ya/yazi/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ runCommand yazi-unwrapped.name
''
mkdir -p $out/bin
ln -s ${yazi-unwrapped}/share $out/share
ln -s ${yazi-unwrapped}/bin/ya $out/bin/ya
makeWrapper ${yazi-unwrapped}/bin/yazi $out/bin/yazi \
--prefix PATH : ${lib.makeBinPath runtimePaths} \
${lib.optionalString (configHome != null) "--set YAZI_CONFIG_HOME ${configHome}"}
Expand Down

0 comments on commit b24a502

Please sign in to comment.