Unverified Commit f63739e2 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #321937 from eljamm/yazi-cli

parents 476210ea f278ebb4
Loading
Loading
Loading
Loading
+23 −9
Original line number Diff line number Diff line
{ rustPlatform
, fetchFromGitHub
, lib
{
  rustPlatform,
  fetchFromGitHub,
  lib,

, installShellFiles
, stdenv
, Foundation
, rust-jemalloc-sys
  installShellFiles,
  stdenv,
  Foundation,
  rust-jemalloc-sys,

, nix-update-script
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
@@ -25,6 +26,14 @@ 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 ];

@@ -44,7 +53,12 @@ rustPlatform.buildRustPackage rec {
    description = "Blazing fast terminal file manager written in Rust, based on async I/O";
    homepage = "https://github.com/sxyazi/yazi";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ xyenon matthiasbeyer linsui eljamm ];
    maintainers = with lib.maintainers; [
      xyenon
      matthiasbeyer
      linsui
      eljamm
    ];
    mainProgram = "yazi";
  };
}
+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}"}