[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/16: gnu: browserpass-native: Use new package style.
From: |
guix-commits |
Subject: |
14/16: gnu: browserpass-native: Use new package style. |
Date: |
Wed, 14 Jun 2023 17:50:05 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit c4e49d75986b362820ce413152300f7682ca349b
Author: Timotej Lazar <timotej.lazar@araneo.si>
AuthorDate: Sat Apr 29 23:28:11 2023 +0200
gnu: browserpass-native: Use new package style.
* gnu/packages/password-utils.scm (browserpass-native)[arguments]: Use
gexps. Drop trailing #t from phases.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/password-utils.scm | 71 ++++++++++++++++++-----------------------
1 file changed, 31 insertions(+), 40 deletions(-)
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 08416a8503..db22f257f1 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -965,46 +965,37 @@ from password-store and gopass files.")
(base32 "1if72k526sqqxnw250qwxvzwvh1w0k8ag4p4xq3442b22hywx72i"))))
(build-system go-build-system)
(arguments
- `(#:import-path "github.com/browserpass/browserpass-native"
- #:install-source? #f
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'patch-makefile
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- ;; This doesn't go in #:make-flags because the Makefile itself
- ;; gets installed.
- (substitute*
- "src/github.com/browserpass/browserpass-native/Makefile"
- (("PREFIX \\?= /usr")
- (string-append "PREFIX ?= " out)))
- #t)))
- (add-before 'build 'configure
- (lambda _
- (with-directory-excursion
- "src/github.com/browserpass/browserpass-native"
- (invoke "make" "configure"))
- #t))
- (replace 'build
- (lambda _
- (with-directory-excursion
- "src/github.com/browserpass/browserpass-native"
- (invoke "make"))
- #t))
- (replace 'install
- (lambda _
- (with-directory-excursion
- "src/github.com/browserpass/browserpass-native"
- (invoke "make" "install"))
- #t))
- (add-after 'install 'wrap-executable
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (gnupg (assoc-ref inputs "gnupg")))
- (wrap-program (string-append out "/bin/browserpass")
- `("PATH" ":" prefix
- (,(string-append gnupg "/bin"))))
- #t))))))
+ (list #:import-path "github.com/browserpass/browserpass-native"
+ #:install-source? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'patch-makefile
+ (lambda _
+ ;; This doesn't go in #:make-flags because the Makefile
+ ;; itself gets installed.
+ (substitute*
"src/github.com/browserpass/browserpass-native/Makefile"
+ (("PREFIX \\?= /usr")
+ (string-append "PREFIX ?= " #$output)))))
+ (add-before 'build 'configure
+ (lambda _
+ (with-directory-excursion
+ "src/github.com/browserpass/browserpass-native"
+ (invoke "make" "configure"))))
+ (replace 'build
+ (lambda _
+ (with-directory-excursion
+ "src/github.com/browserpass/browserpass-native"
+ (invoke "make"))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion
+ "src/github.com/browserpass/browserpass-native"
+ (invoke "make" "install"))))
+ (add-after 'install 'wrap-executable
+ (lambda _
+ (wrap-program (string-append #$output "/bin/browserpass")
+ `("PATH" ":" prefix
+ (,(string-append #$(this-package-input "gnupg")
"/bin")))))))))
(native-inputs
(list which))
(inputs
- branch master updated (09449ef6f6 -> 26602f4063), guix-commits, 2023/06/14
- 03/16: gnu: cuirass: Use guile-fibers 1.3.1., guix-commits, 2023/06/14
- 02/16: gnu: shepherd@0.10: Use guile-fibers 1.3.1., guix-commits, 2023/06/14
- 05/16: gnu: gnunet-scheme: Use guile-fibers 1.3.1., guix-commits, 2023/06/14
- 07/16: gnu: libtree: fix building on non-x86 systems., guix-commits, 2023/06/14
- 08/16: gnu: Add nwipe., guix-commits, 2023/06/14
- 14/16: gnu: browserpass-native: Use new package style.,
guix-commits <=
- 06/16: packages: 'package-transitive-supported-systems' detects cycles., guix-commits, 2023/06/14
- 04/16: gnu: guile-fibers: Remove 'guile-fibers-next'., guix-commits, 2023/06/14
- 09/16: gnu: Add bdf2sfd., guix-commits, 2023/06/14
- 11/16: gnu: gnushogi: Fix build., guix-commits, 2023/06/14
- 10/16: gnu: Add pngcheck., guix-commits, 2023/06/14
- 15/16: gnu: guile-netlink: Update to 1.2., guix-commits, 2023/06/14
- 13/16: gnu: browserpass-native: Update to 3.1.0., guix-commits, 2023/06/14
- 12/16: gnu: Add systemtap, guix-commits, 2023/06/14
- 01/16: gnu: guile-fibers: Add 1.3.1., guix-commits, 2023/06/14
- 16/16: services: static-netwoking: Wait for devices to show up., guix-commits, 2023/06/14