eza: modernize
Add versionCheckHook, structuredAttrs Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user