eza: modernize

Add versionCheckHook, structuredAttrs

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-05-16 04:02:19 -04:00
parent 0ec9b63333
commit 9c0002a656
+6
View File
@@ -8,6 +8,7 @@
pkg-config,
zlib,
installShellFiles,
versionCheckHook,
# once eza upstream gets support for setting up a compatibility symlink for exa, we should change
# the handling here from postInstall to passing the required argument to the builder.
exaAlias ? true,
@@ -17,6 +18,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
pname = "eza";
version = "0.23.4";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "eza-community";
repo = "eza";
@@ -57,6 +60,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
ln -s eza $out/bin/exa
'';
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
description = "Modern, maintained replacement for ls";
longDescription = ''