From patchwork Wed Jul 20 12:22:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jean Pierre De Jesus DIAZ X-Patchwork-Id: 40775 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 E6C8027BBEA; Wed, 20 Jul 2022 13:23:28 +0100 (BST) 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,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 3FD8927BBE9 for ; Wed, 20 Jul 2022 13:23:28 +0100 (BST) Received: from localhost ([::1]:33288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE8jf-0005R6-CS for patchwork@mira.cbaines.net; Wed, 20 Jul 2022 08:23:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE8jI-00058J-1H for guix-patches@gnu.org; Wed, 20 Jul 2022 08:23:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE8jG-0004cv-T3 for guix-patches@gnu.org; Wed, 20 Jul 2022 08:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oE8jG-0007et-P3 for guix-patches@gnu.org; Wed, 20 Jul 2022 08:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56663] [PATCH 24/24]: gnu: just: New package. References: In-Reply-To: Resent-From: Jean Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Jul 2022 12:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56663 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "56663@debbugs.gnu.org" <56663@debbugs.gnu.org> Received: via spool by 56663-submit@debbugs.gnu.org id=B56663.165831977529393 (code B ref 56663); Wed, 20 Jul 2022 12:23:02 +0000 Received: (at 56663) by debbugs.gnu.org; 20 Jul 2022 12:22:55 +0000 Received: from localhost ([127.0.0.1]:56250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE8j9-0007e0-6h for submit@debbugs.gnu.org; Wed, 20 Jul 2022 08:22:55 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:63813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE8j2-0007di-Sx for 56663@debbugs.gnu.org; Wed, 20 Jul 2022 08:22:53 -0400 Date: Wed, 20 Jul 2022 12:22:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeandudey.tech; s=protonmail3; t=1658319763; x=1658578963; bh=gnzUCVe62FI5ZQwlIxYiRUNQwL3ncRmpaaUln2CVTOU=; h=Date:To:From:Reply-To:Subject:Message-ID:Feedback-ID:From:To:Cc: Date:Subject:Reply-To:Feedback-ID:Message-ID; b=exjBxPKY32vHKSSEqQE2HjUIGDxVJ9pJtbnK4V+sPP1z+VFoMLEdrjAwpY1NKgw5i efzKbbUI82P/jp8sBWyt4zaHZASbPX0b+IbJnkHqGOTtSqczLZdYU8sr+WqveMN6UY KbprRq8KuU7l1IKNMFlbZ7AfC3/jwYU8QqRCL7yoGPSl/iOrk2LGGgM00YGVCLP1uA ZgpjGxrm00TE4ThVmADc+X1EikV4eapbHpYzNpJNr8QMFBJh7r3PlM03brxZ3TRyKd UGbjSz+fF5sziFEUHxckLaVrzlrT9GNCrPpt4ghtgMxzMmjCy8GuOd+XY/cMqaZIyG wm6AwzEgRShYQ== Message-ID: Feedback-ID: 20187791:user:proton 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Jean Pierre De Jesus DIAZ X-ACL-Warn: , Jean Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean Pierre De Jesus DIAZ via Guix-patches via From: Jean Pierre De Jesus DIAZ X-getmail-retrieved-from-mailbox: Patches Empty Message From 3d3f6255beada8cb6b0e78cd43657de9367ba687 Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Sun, 17 Jul 2022 22:50:12 +0200 Subject: [PATCH 24/24] gnu: just: New package. * gnu/packages/rust-apps.scm (just): New variable. --- gnu/packages/rust-apps.scm | 100 +++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 0d5034ffb7..91ec6908e8 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2021 jgart ;;; Copyright © 2021 Nicolas Graves ;;; Copyright © 2022 Aleksandr Vityazev +;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ ;;; ;;; This file is part of GNU Guix. ;;; @@ -612,6 +613,105 @@ (define-public hyperfine "This package provides a command-line benchmarking tool.") (license (list license:expat license:asl2.0)))) +(define-public just + (package + (name "just") + (version "1.2.0") + (source (origin + (method url-fetch) + (uri (crate-uri "just" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1x762kq9mdp86fbnymn77mvdabcyvp211bkbvawnzm8fspp8a3g2")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags + '("--release" "--" + "--skip=choose::status_error" + "--skip=edit::editor_working_directory" + "--skip=edit::status_error" + "--skip=export::setting_shebang" + "--skip=export::shebang" + "--skip=justfile::tests::run_shebang" + "--skip=functions::env_var_functions" + "--skip=functions::path_functions" + "--skip=functions::path_functions2" + "--skip=misc::quiet_shebang_recipe" + "--skip=misc::shebang_line_numbers" + "--skip=positional_arguments::shebang" + "--skip=positional_arguments::variadic_shebang" + "--skip=quiet::choose_status" + "--skip=quiet::quiet_shebang" + "--skip=shell::flag" + "--skip=working_directory::change_working_directory_to_search_justfile_parent" + "--skip=working_directory::justfile_and_working_directory" + "--skip=working_directory::justfile_without_working_directory" + "--skip=working_directory::justfile_without_working_directory_relative" + "--skip=working_directory::search_dir_child" + "--skip=working_directory::search_dir_parent") + #:install-source? #f + #:cargo-inputs + (("rust-ansi-term" ,rust-ansi-term-0.12) + ("rust-atty" ,rust-atty-0.2) + ("rust-camino" ,rust-camino-1) + ("rust-clap" ,rust-clap-2) + ("rust-ctrlc" ,rust-ctrlc-3) + ("rust-derivative" ,rust-derivative-2) + ("rust-dotenv" ,rust-dotenv-0.15) + ("rust-edit-distance" ,rust-edit-distance-2) + ("rust-env-logger" ,rust-env-logger-0.9) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-lexiclean" ,rust-lexiclean-0.0.1) + ("rust-libc" ,rust-libc-0.2) + ("rust-log" ,rust-log-0.4) + ("rust-regex" ,rust-regex-1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-sha2" ,rust-sha2-0.10) + ("rust-similar" ,rust-similar-2) + ("rust-snafu" ,rust-snafu-0.7) + ("rust-strum" ,rust-strum-0.24) + ("rust-target" ,rust-target-2) + ("rust-tempfile" ,rust-tempfile-3) + ("rust-typed-arena" ,rust-typed-arena-2) + ("rust-unicode-width" ,rust-unicode-width-0.1) + ("rust-uuid" ,rust-uuid-1)) + #:cargo-development-inputs + (("rust-cradle" ,rust-cradle-0.2) + ("rust-executable-path" ,rust-executable-path-1) + ("rust-pretty-assertions" ,rust-pretty-assertions-1) + ("rust-temptree" ,rust-temptree-0.2) + ("rust-which" ,rust-which-4) + ("rust-yaml-rust" ,rust-yaml-rust-0.4)) + #:phases + (modify-phases %standard-phases + (add-after 'install 'install-extra + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share")) + (man1 (string-append share "/man/man1")) + (bash (string-append out "/etc/bash_completions.d")) + (fish (string-append share "/fish/vendor_completions.d")) + (zsh (string-append share "/zsh/site-functions"))) + (install-file "man/just.1" man1) + (mkdir-p bash) + (mkdir-p zsh) + (mkdir-p fish) + (copy-file "completions/just.bash" (string-append bash "/just")) + (copy-file "completions/just.zsh" (string-append zsh "/_just")) + (copy-file "completions/just.fish" + (string-append fish "/just.fish")))))))) + (home-page "https://just.systems/") + (synopsis "Command runner") + (description "Just is a command runner. + +It provides a handy way to save and run project-specific commands. + +Commands, called recipes, are stored in a file called @code{justfile} with +syntax inspired by @code{make}.") + (license license:cc0))) + (define-public i3status-rust (package (name "i3status-rust") -- 2.36.1