yazi-unwrapped: build new yazi-cli tool

In addition to the main program, there is a new CLI tool, now:
https://github.com/sxyazi/yazi/issues/914
This commit is contained in:
eljamm 2024-06-23 10:56:48 +01:00
parent 26e9314972
commit b53e0dae4e
No known key found for this signature in database
GPG Key ID: 7630FDF7C8FB1F3F
2 changed files with 4 additions and 0 deletions

View File

@ -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 ];

View File

@ -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}"}