Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yazi-unwrapped: build new yazi-cli tool #321937

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions pkgs/by-name/ya/yazi-unwrapped/package.nix
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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 ];

Expand All @@ -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 change: 1 addition & 0 deletions pkgs/by-name/ya/yazi/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}"}
Expand Down