Merge pull request #321937 from eljamm/yazi-cli

This commit is contained in:
Sandro
2024-07-03 14:15:42 +02:00
committed by GitHub
2 changed files with 24 additions and 9 deletions
+23 -9
View File
@@ -1,13 +1,14 @@
{ 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
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}"}