From patchwork Sun Oct 29 04:27:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaeme Sifat X-Patchwork-Id: 55512 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6F84127BBEA; Sun, 29 Oct 2023 04:31:33 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A21B727BBE2 for ; Sun, 29 Oct 2023 04:31:30 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwxRu-0008D4-SU; Sun, 29 Oct 2023 00:30:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwxRc-0008B5-1u for guix-patches@gnu.org; Sun, 29 Oct 2023 00:30:43 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qwxRY-0004tZ-Tf for guix-patches@gnu.org; Sun, 29 Oct 2023 00:30:35 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qwxS5-0001R2-0h for guix-patches@gnu.org; Sun, 29 Oct 2023 00:31:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66805] [PATCH 21/22] gnu: Add eza. Resent-From: Jaeme Sifat Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Oct 2023 04:31:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66805 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66805@debbugs.gnu.org Cc: Jaeme Sifat Received: via spool by 66805-submit@debbugs.gnu.org id=B66805.16985538595454 (code B ref 66805); Sun, 29 Oct 2023 04:31:04 +0000 Received: (at 66805) by debbugs.gnu.org; 29 Oct 2023 04:30:59 +0000 Received: from localhost ([127.0.0.1]:40188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwxRy-0001Pp-LL for submit@debbugs.gnu.org; Sun, 29 Oct 2023 00:30:59 -0400 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]:53764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwxRw-0001PV-NP for 66805@debbugs.gnu.org; Sun, 29 Oct 2023 00:30:57 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1qwxRK-00BV2X-MT for 66805@debbugs.gnu.org; Sun, 29 Oct 2023 05:30:18 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To :Message-Id:Date:Subject:Cc:To:From; bh=y4//lJFzx8I75P9NR68IGEoYDMKHSwD72KKWgRfking=; b=k9qXaYbBj6PTZh/N59ojwQzd9W S6e034dS0z7OQxhDmKYpKI0Ws1pWoXlZW6kw3UCbsrnCVjf35qebvWe74RRHUC5zJ4v/KPKtlZR9l bOwzQlu0pZfTIAr8a5kCDhNtEIfLJXBfp9rT6PUey/2vKIo4zobti1aImmX2JChIQyiLtTGglQndx F8zzoj15WSguUoyzV7eY7O6sbIJHxOUYKgSqAYocov/EVlbZD45EuwBBTC5I2X26EdGA6Yvbrr4fc Dsc2omhbxWZcGtIxkv4BB1vOTByj26DtN7wUbOgxzkIdKU7Bp4BGu1fJwxyLclnxLJg6pwlz0qWp0 7xmT7adg==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qwxRK-0005n7-Cv for 66805@debbugs.gnu.org; Sun, 29 Oct 2023 05:30:18 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (1176697)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1qwxRC-001dmK-JU; Sun, 29 Oct 2023 05:30:10 +0100 Date: Sun, 29 Oct 2023 00:27:13 -0400 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Jaeme Sifat X-ACL-Warn: , Jaeme Sifat via Guix-patches X-Patchwork-Original-From: Jaeme Sifat via Guix-patches via From: Jaeme Sifat Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches eza is the community-maintained successor fork to exa. Minimal changes had to be made to adapt the exa package definition to eza. * gnu/packages/rust-apps.scm (eza): New variable. Signed-off-by: Jaeme Sifat Change-Id: I0069bbbc8de55a030a52ef98b0f8d9dd0fe07317 --- gnu/packages/rust-apps.scm | 89 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index a06447143a..78ca22748f 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -463,6 +463,95 @@ (define-public exa also knows about symlinks, extended attributes, and Git.") (license license:expat))) +(define-public eza + (package + (name "eza") + (version "0.15.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "eza" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "078gdp5kamqrl7rj5q9a979xn58izqqzfi8vz0bhdxiikpjdf5b8")))) + (build-system cargo-build-system) + (arguments + (list + #:cargo-inputs `(("rust-ansiterm" ,rust-ansiterm-0.12) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-git2" ,rust-git2-0.18) + ("rust-glob" ,rust-glob-0.3) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-locale" ,rust-locale-0.2) + ("rust-log" ,rust-log-0.4) + ("rust-natord" ,rust-natord-1) + ("rust-num-cpus" ,rust-num-cpus-1) + ("rust-number-prefix" ,rust-number-prefix-0.4) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-percent-encoding" ,rust-percent-encoding-2) + ("rust-phf" ,rust-phf-0.11) + ("rust-proc-mounts" ,rust-proc-mounts-0.3) + ("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1) + ("rust-terminal-size" ,rust-terminal-size-0.3) + ("rust-timeago" ,rust-timeago-0.4) + ("rust-unicode-width" ,rust-unicode-width-0.1) + ("rust-uutils-term-grid" ,rust-uutils-term-grid-0.3) + ("rust-uzers" ,rust-uzers-0.11) + ("rust-windows-sys" ,rust-windows-sys-0.48) + ("rust-zoneinfo-compiled" ,rust-zoneinfo-compiled-0.5)) + #:cargo-development-inputs `(("rust-criterion" ,rust-criterion-0.5) + ("rust-trycmd" ,rust-trycmd-0.14)) + #:phases #~(modify-phases %standard-phases + (add-after 'build 'build-manual + (lambda* (#:key inputs #:allow-other-keys) + (when (assoc-ref inputs "pandoc") + (map (lambda (page) + (with-output-to-file page + (lambda _ + (invoke "pandoc" + "--standalone" + "-f" + "markdown" + "-t" + "man" + (string-append "man/" page ".md"))))) + (list "eza.1" "eza_colors.5"))))) + (add-after 'install 'install-extras + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share")) + (man1 (string-append share "/man/man1")) + (man5 (string-append share "/man/man5"))) + (when (file-exists? "eza.1") + (install-file "eza.1" man1)) + (when (file-exists? "eza_colors.5") + (install-file "eza_colors.5" man5)) + (mkdir-p (string-append out "/etc/bash_completion.d")) + (mkdir-p (string-append share + "/fish/vendor_completions.d")) + (mkdir-p (string-append share "/zsh/site-functions")) + (copy-file "completions/bash/eza" + (string-append out + "/etc/bash_completion.d/eza")) + (copy-file "completions/fish/eza.fish" + (string-append share + "/fish/vendor_completions.d/eza.fish")) + (copy-file "completions/zsh/_eza" + (string-append share + "/zsh/site-functions/_eza")))))))) + (native-inputs (list pandoc pkg-config)) + (inputs (list zlib)) + (home-page "https://github.com/eza-community/eza") + (synopsis "Modern replacement for ls") + (description + "@code{eza} is a modern replacement for the command-line +program @code{ls}. It uses colours to distinguish file types and +metadata. It also knows about symlinks, extended attributes, and Git. +This package is the community maintained fork of @code{exa}.") + (license license:expat))) + (define-public fd (package (name "fd")