[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/14: gnu: cl-cmd: Improve package style.
From: |
guix-commits |
Subject: |
02/14: gnu: cl-cmd: Improve package style. |
Date: |
Thu, 4 Jan 2024 09:12:39 -0500 (EST) |
glv pushed a commit to branch master
in repository guix.
commit 2da9ee16e3f9887e47a6c52d8fb3e789da03d726
Author: Paul A. Patience <paul@apatience.com>
AuthorDate: Fri Dec 29 12:54:57 2023 +0000
gnu: cl-cmd: Improve package style.
* gnu/packages/lisp-xyz.scm (sbcl-cmd)[arguments]: Use
G-expressions. Move above inputs.
[inputs]: Remove labels. Sort.
Change-Id: I7cafea4cce3b2dfb89b21c43d71b96767d55c7f5
Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
---
gnu/packages/lisp-xyz.scm | 54 ++++++++++++++++++++++++-----------------------
1 file changed, 28 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 4b8563127f..bb30c39a96 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -17968,33 +17968,35 @@ standard library.")
(sha256
(base32 "03wbckzmz6pqdlz7pyar6nfg4vs4bl0b2np7n3kk3qhjbrdakc4m"))))
(build-system asdf-build-system/sbcl)
- (inputs
- `(("alexandria" ,sbcl-alexandria)
- ("coreutils" ,coreutils)
- ("procps" ,procps)
- ("serapeum" ,sbcl-serapeum)
- ("shlex" ,sbcl-shlex)
- ("trivia" ,sbcl-trivia)))
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-paths
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((bin (string-append (assoc-ref inputs "coreutils")
"/bin"))
- (ps-bin (string-append (assoc-ref inputs "procps")
"/bin")))
- (substitute* "cmd.lisp"
- (("\\(def \\+env\\+ \"env\"\\)")
- (format #f "(def +env+ \"~a/env\")" bin))
- (("\\(def \\+kill\\+ \"kill\"\\)")
- (format #f "(def +kill+ \"~a/kill\")" bin))
- (("\\(def \\+ps\\+ \"ps\"\\)")
- (format #f "(def +ps+ \"~a/ps\")" ps-bin))
- (("\\(def \\+pwd\\+ \"pwd\"\\)")
- (format #f "(def +pwd+ \"~a/pwd\")" bin))
- (("\\(def \\+sh\\+ \"/bin/sh\"\\)")
- (format #f "(def +sh+ \"~a\")" (which "sh")))
- (("\\(def \\+tr\\+ \"tr\"\\)")
- (format #f "(def +tr+ \"~a/tr\")" bin)))))))))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((bin (string-append (assoc-ref inputs "coreutils")
+ "/bin"))
+ (ps-bin (string-append (assoc-ref inputs "procps")
+ "/bin")))
+ (substitute* "cmd.lisp"
+ (("\\(def \\+env\\+ \"env\"\\)")
+ (format #f "(def +env+ \"~a/env\")" bin))
+ (("\\(def \\+kill\\+ \"kill\"\\)")
+ (format #f "(def +kill+ \"~a/kill\")" bin))
+ (("\\(def \\+ps\\+ \"ps\"\\)")
+ (format #f "(def +ps+ \"~a/ps\")" ps-bin))
+ (("\\(def \\+pwd\\+ \"pwd\"\\)")
+ (format #f "(def +pwd+ \"~a/pwd\")" bin))
+ (("\\(def \\+sh\\+ \"/bin/sh\"\\)")
+ (format #f "(def +sh+ \"~a\")" (which "sh")))
+ (("\\(def \\+tr\\+ \"tr\"\\)")
+ (format #f "(def +tr+ \"~a/tr\")" bin)))))))))
+ (inputs
+ (list coreutils
+ procps
+ sbcl-alexandria
+ sbcl-serapeum
+ sbcl-shlex
+ sbcl-trivia))
(home-page "https://github.com/ruricolist/cmd")
(synopsis "Conveniently run external programs from Common Lisp")
(description
- branch master updated (4f53dff911 -> 0eec27846b), guix-commits, 2024/01/04
- 01/14: gnu: cl-cmd: Update to 0.0.1-8.0164d57., guix-commits, 2024/01/04
- 04/14: gnu: cl-atomics: Update to 1.0.0-2.b747702., guix-commits, 2024/01/04
- 03/14: gnu: cl-dexador: Update to 0.9.15-2.051cbb7., guix-commits, 2024/01/04
- 02/14: gnu: cl-cmd: Improve package style.,
guix-commits <=
- 05/14: gnu: cl-numpy-file-format: Update to 0.0.0-2.e440c7b., guix-commits, 2024/01/04
- 06/14: gnu: cl-nibbles: Update to 0.14-3.a46a677., guix-commits, 2024/01/04
- 07/14: gnu: cl-eclector: Update to 0.9.0-0.d499b09., guix-commits, 2024/01/04
- 11/14: gnu: Add cl-type-templates., guix-commits, 2024/01/04
- 10/14: gnu: cl-clingon: Update to 0.5.0-0.379fc41., guix-commits, 2024/01/04
- 13/14: gnu: Add cl-3d-spaces., guix-commits, 2024/01/04
- 08/14: gnu: cl-coalton: Update to 0.0.1-4.9393424., guix-commits, 2024/01/04
- 12/14: gnu: Add cl-3d-math., guix-commits, 2024/01/04
- 14/14: gnu: cl-gltf: Update to 2.0.0-0.dab186e., guix-commits, 2024/01/04
- 09/14: gnu: cl-machine-state: Update to 1.0.0-2.3d258ee., guix-commits, 2024/01/04