eza: minor clean up (#395573)
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
exaAlias ? true,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "eza";
|
||||
version = "0.21.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eza-community";
|
||||
repo = "eza";
|
||||
rev = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-edBFMqY+61kFumLTcVFgnmhE4d+bMVz+udR5h02kDk0=";
|
||||
};
|
||||
|
||||
@@ -46,7 +46,7 @@ rustPlatform.buildRustPackage rec {
|
||||
postInstall =
|
||||
''
|
||||
for page in eza.1 eza_colors.5 eza_colors-explanation.5; do
|
||||
sed "s/\$version/v${version}/g" "man/$page.md" |
|
||||
sed "s/\$version/v${finalAttrs.version}/g" "man/$page.md" |
|
||||
pandoc --standalone -f markdown -t man >"man/$page"
|
||||
done
|
||||
installManPage man/eza.1 man/eza_colors.5 man/eza_colors-explanation.5
|
||||
@@ -59,7 +59,7 @@ rustPlatform.buildRustPackage rec {
|
||||
ln -s eza $out/bin/exa
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Modern, maintained replacement for ls";
|
||||
longDescription = ''
|
||||
eza is a modern replacement for ls. It uses colours for information by
|
||||
@@ -70,14 +70,14 @@ rustPlatform.buildRustPackage rec {
|
||||
written in Rust, so it’s small, fast, and portable.
|
||||
'';
|
||||
homepage = "https://github.com/eza-community/eza";
|
||||
changelog = "https://github.com/eza-community/eza/releases/tag/v${version}";
|
||||
license = licenses.eupl12;
|
||||
changelog = "https://github.com/eza-community/eza/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.eupl12;
|
||||
mainProgram = "eza";
|
||||
maintainers = with maintainers; [
|
||||
maintainers = with lib.maintainers; [
|
||||
cafkafk
|
||||
_9glenda
|
||||
sigmasquadron
|
||||
];
|
||||
platforms = platforms.unix ++ platforms.windows;
|
||||
platforms = with lib.platforms; unix ++ windows;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user