[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: gnu: dehydrated: Use G-expressions.
From: |
guix-commits |
Subject: |
05/07: gnu: dehydrated: Use G-expressions. |
Date: |
Sat, 29 Oct 2022 14:14:36 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 4f5e87f7512b4d979bca6c9633636c023fd02024
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Oct 23 02:00:00 2022 +0200
gnu: dehydrated: Use G-expressions.
* gnu/packages/tls.scm (dehydrated)[arguments]:
Rewrite as G-expressions.
---
gnu/packages/tls.scm | 81 ++++++++++++++++++++++++++--------------------------
1 file changed, 41 insertions(+), 40 deletions(-)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 336127d8be..3bf547777b 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -1123,53 +1123,54 @@ coding footprint.")
(base32 "0rvxgxfk0filzw2dr14xwmiic1pwj82b615wydmg818xwdx7mxfx"))))
(build-system trivial-build-system)
(arguments
- `(#:modules ((guix build utils)
+ (list
+ #:modules '((guix build utils)
(srfi srfi-26))
- #:builder
- (begin
- (use-modules (guix build utils)
- (srfi srfi-26))
- (let* ((source (assoc-ref %build-inputs "source"))
- (gzip (search-input-file %build-inputs "bin/gzip"))
- (out (assoc-ref %outputs "out"))
- (bin (string-append out "/bin"))
- (doc (string-append out "/share/doc/" ,name "-" ,version))
- (man (string-append out "/share/man"))
- (bash (in-vicinity (assoc-ref %build-inputs "bash") "bin")))
+ #:builder
+ #~(begin
+ (use-modules (guix build utils)
+ (srfi srfi-26))
+ (let* ((source (assoc-ref %build-inputs "source"))
+ (gzip (search-input-file %build-inputs "bin/gzip"))
+ (bin (string-append #$output "/bin"))
+ (doc (string-append #$output "/share/doc/"
+ #$name "-" #$version))
+ (man (string-append #$output "/share/man"))
+ (bash (in-vicinity (assoc-ref %build-inputs "bash") "bin")))
- (chdir source)
+ (chdir source)
- (copy-recursively "docs" doc)
- (install-file "LICENSE" doc)
+ (copy-recursively "docs" doc)
+ (install-file "LICENSE" doc)
- (mkdir-p man)
- (rename-file (string-append doc "/man")
- (string-append man "/man1"))
- (for-each (cut invoke gzip "-9" <>)
- (find-files man ".*"))
+ (mkdir-p man)
+ (rename-file (string-append doc "/man")
+ (string-append man "/man1"))
+ (for-each (cut invoke gzip "-9" <>)
+ (find-files man ".*"))
- (install-file "dehydrated" bin)
- (with-directory-excursion bin
- (patch-shebang "dehydrated" (list bash))
+ (install-file "dehydrated" bin)
+ (with-directory-excursion bin
+ (patch-shebang "dehydrated" (list bash))
- ;; Do not try to write to the store.
- (substitute* "dehydrated"
- (("SCRIPTDIR=\"\\$.*\"") "SCRIPTDIR=~/.dehydrated"))
+ ;; Do not try to write to the store.
+ (substitute* "dehydrated"
+ (("SCRIPTDIR=\"\\$.*\"") "SCRIPTDIR=~/.dehydrated"))
- (setenv "PATH" bash)
- (wrap-program "dehydrated"
- `("PATH" ":" prefix
- ,(map (lambda (dir)
- (string-append dir "/bin"))
- (map (lambda (input)
- (assoc-ref %build-inputs input))
- '("coreutils"
- "curl"
- "diffutils"
- "gawk"
- "grep"
- "openssl"
- "sed"))))))))))
+ (setenv "PATH" bash)
+ (wrap-program "dehydrated"
+ `("PATH" ":" prefix
+ ,(map (lambda (dir)
+ (string-append dir "/bin"))
+ (map (lambda (input)
+ (assoc-ref %build-inputs input))
+ '("coreutils"
+ "curl"
+ "diffutils"
+ "gawk"
+ "grep"
+ "openssl"
+ "sed"))))))))))
(inputs
(list bash
coreutils
- branch master updated (1ea1fa96fe -> 34e6c5d428), guix-commits, 2022/10/29
- 07/07: gnu: rapidjson: Fix powerpc64le-linux build., guix-commits, 2022/10/29
- 03/07: gnu: pinentry-tty: Update to 1.2.1., guix-commits, 2022/10/29
- 01/07: gnu: memtest86+: Build reproducibly., guix-commits, 2022/10/29
- 02/07: gnu: goffice: Update to 0.10.53., guix-commits, 2022/10/29
- 05/07: gnu: dehydrated: Use G-expressions.,
guix-commits <=
- 04/07: gnu: dehydrated: Update to 0.7.0-0.6fb8eba., guix-commits, 2022/10/29
- 06/07: gnu: dehydrated: ‘Build’ reproducibly., guix-commits, 2022/10/29