Unverified Commit b53e0dae authored by eljamm's avatar eljamm
Browse files

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
parent 26e93149
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 ];

+1 −0
Original line number Diff line number Diff line
@@ -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}"}