Unverified Commit 9e8b515d authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

eza: minor clean up (#395573)

parents 0f9dd70c 82509978
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -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;
  };
}
})