From 9c0002a6563256317002ea8cda5692d3ca4489a1 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sat, 16 May 2026 04:02:19 -0400 Subject: [PATCH] eza: modernize Add versionCheckHook, structuredAttrs Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/ez/eza/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ez/eza/package.nix b/pkgs/by-name/ez/eza/package.nix index 19293a765010..2bbc21ac8708 100644 --- a/pkgs/by-name/ez/eza/package.nix +++ b/pkgs/by-name/ez/eza/package.nix @@ -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 = ''