* [bug#40129] [PATCH] gnu: gpa: Add phase wrap-program.
@ 2020-03-19 9:19 Brice Waegeneire
2020-03-19 9:51 ` bug#40129: " Marius Bakke
0 siblings, 1 reply; 2+ messages in thread
From: Brice Waegeneire @ 2020-03-19 9:19 UTC (permalink / raw)
To: 40129
Fixes <https://bugs.gnu.org/36109>
* gnu/packages/gnupg.scm (gpa)[arguments]: Add phase wrap-program.
---
gnu/packages/gnupg.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index c5c3d5263f..30658c7cb7 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -975,6 +975,16 @@ however, pgpdump produces more detailed and easier to understand output.")
(base32
"1cbpc45f8qbdkd62p12s3q2rdq6fa5xdzwmcwd3xrj55bzkspnwm"))))
(build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'wrap-program
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (gnupg (assoc-ref inputs "gnupg")))
+ (wrap-program (string-append out "/bin/gpa")
+ `("PATH" ":" prefix (,(string-append gnupg "/bin")))
+ )))))))
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs
base-commit: 771c5e155d7862ed91a5d503eecc00c1db1150ad
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#40129: [PATCH] gnu: gpa: Add phase wrap-program.
2020-03-19 9:19 [bug#40129] [PATCH] gnu: gpa: Add phase wrap-program Brice Waegeneire
@ 2020-03-19 9:51 ` Marius Bakke
0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2020-03-19 9:51 UTC (permalink / raw)
To: Brice Waegeneire, 40129-done; +Cc: 36109-done
[-- Attachment #1: Type: text/plain, Size: 655 bytes --]
Brice Waegeneire <brice@waegenei.re> writes:
> Fixes <https://bugs.gnu.org/36109>
>
> * gnu/packages/gnupg.scm (gpa)[arguments]: Add phase wrap-program.
Applied, thanks!
[...]
> + (add-after 'install 'wrap-program
> + (lambda* (#:key inputs outputs #:allow-other-keys)
> + (let ((out (assoc-ref outputs "out"))
> + (gnupg (assoc-ref inputs "gnupg")))
> + (wrap-program (string-append out "/bin/gpa")
> + `("PATH" ":" prefix (,(string-append gnupg "/bin")))
> + )))))))
I ended this phase on a #t and fixed the lonely parens as reported by
'guix lint gpa'.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-19 9:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-19 9:19 [bug#40129] [PATCH] gnu: gpa: Add phase wrap-program Brice Waegeneire
2020-03-19 9:51 ` bug#40129: " Marius Bakke
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).