GNU bug report logs -
#76581
[PATCH 0/2] Age: Fix interaction with age.el, add manpages.
Previous Next
Reported by: Nicolas Graves <ngraves <at> ngraves.fr>
Date: Wed, 26 Feb 2025 09:58:02 UTC
Severity: normal
Tags: patch
Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
From: Nicolas Graves <ngraves <at> ngraves.fr>
* gnu/packages/golang-crypto.scm (go-filippo-io-age): Remove other doc
files.
(age): [arguments] <phases>: Add 'install-man-pages.
Change-Id: I58e10755c907af5a67083fb22682efdd4c4b7c92
---
gnu/packages/golang-crypto.scm | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index b79fa01dbb2..b0420f2a043 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -14,7 +14,7 @@
;;; Copyright © 2021 Vagrant Cascadian <vagrant <at> debian.org>
;;; Copyright © 2022 (unmatched-parenthesis <paren <at> disroot.org>
;;; Copyright © 2022 Tobias Geerinckx-Rice <me <at> tobias.gr>
-;;; Copyright © 2022, 2023 Nicolas Graves <ngraves <at> ngraves.fr>
+;;; Copyright © 2022, 2023, 2025 Nicolas Graves <ngraves <at> ngraves.fr>
;;; Copyright © 2023 Benjamin <benjamin <at> uvy.fr>
;;; Copyright © 2023 Clément Lassieur <clement <at> lassieur.org>
;;; Copyright © 2023 Felix Lechner <felix.lechner <at> lease-up.com>
@@ -135,7 +135,17 @@ (define-public go-filippo-io-age
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "183iqzmdwk4b35vxrdg2gdzd4277yr5bgbgl9brqv3w1dap5v4pm"))))
+ (base32 "183iqzmdwk4b35vxrdg2gdzd4277yr5bgbgl9brqv3w1dap5v4pm"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; Age source bundles manpages already. Seems OK not to rebuild
+ ;; them with ronn, they are pretty auditable.
+ (with-directory-excursion "doc"
+ (for-each delete-file '("age.1.html"
+ "age.1.ronn"
+ "age-keygen.1.html"
+ "age-keygen.1.ronn")))))))
(build-system go-build-system)
(arguments
(list
@@ -2581,7 +2591,12 @@ (define-public age
`(,@arguments
#:import-path ,(string-append import-path cmd))))
(list "/cmd/age"
- "/cmd/age-keygen"))))))))
+ "/cmd/age-keygen"))))
+ (add-after 'install 'install-man-pages
+ (lambda _
+ (let ((man (string-append #$output "/man/man1/")))
+ (install-file "src/filippo.io/age/doc/age.1" man)
+ (install-file "src/filippo.io/age/doc/age-keygen.1" man))))))))
(native-inputs (package-propagated-inputs go-filippo-io-age))
(propagated-inputs '())
(inputs '())
--
2.48.1
This bug report was last modified 85 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.