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:
parent
26e9314972
commit
b53e0dae4e
@ -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 ];
|
||||
|
||||
|
@ -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}"}
|
||||
|
Loading…
Reference in New Issue
Block a user