Merge pull request #321937 from eljamm/yazi-cli
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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}"}
|
||||
|
||||
Reference in New Issue
Block a user