aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/golang-crypto.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-07-13 09:47:34 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-07-15 12:17:52 +0100
commit74a464d549e89aa0de37c119faf3a2695a1fca55 (patch)
treefe19811603fe8aa61d469a6ef2877256ee373f5c /gnu/packages/golang-crypto.scm
parent26e7288812f06364c3ddd21207cd80d0b068739e (diff)
downloadguix-74a464d549e89aa0de37c119faf3a2695a1fca55.tar.gz
guix-74a464d549e89aa0de37c119faf3a2695a1fca55.zip
gnu: go-filippo-io-age: Update to 1.2.0.
* gnu/packages/golang-crypto.scm (go-filippo-io-age): Update to 1.2.0. [arguments]: <#:phases>: Add 'copy-input-to-vendor-directory phase, and 'remove-vendor-directory. [inputs]: Remove go-golang-org-x-sys, go-golang-org-x-term, go-golang-org-x-crypto, and go-filippo-io-edwards25519. [propagated-inputs]: Add go-golang-org-x-sys, go-golang-org-x-term, go-golang-org-x-crypto, and go-filippo-io-edwards25519. [native-inputs]: Add go-c2sp-org-cctv-age and go-github-com-rogpeppe-go-internal. Change-Id: I625001aa320653fd05db5d214948a9c5d0c200a3
Diffstat (limited to 'gnu/packages/golang-crypto.scm')
-rw-r--r--gnu/packages/golang-crypto.scm39
1 files changed, 35 insertions, 4 deletions
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index ad829551e7..de0c631984 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -119,7 +119,7 @@ can be ignored.")
(define-public go-filippo-io-age
(package
(name "go-filippo-io-age")
- (version "1.1.1")
+ (version "1.2.0")
(source
(origin
(method git-fetch)
@@ -128,10 +128,41 @@ can be ignored.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1k1dv1jkr72qpk5g363mhrg9hnf5c9qgv4l16l13m4yh08jp271d"))))
+ (base32 "1dms32lxqgjipmlisng7dmy1sdw0qscj43x9lmpadyzbzc64lhrv"))))
(build-system go-build-system)
- (arguments `(#:import-path "filippo.io/age"))
- (inputs
+ (arguments
+ (list
+ #:import-path "filippo.io/age"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; FIXME: src/c2sp.org/CCTV/age/age.go:13:12: pattern testdata:
+ ;; cannot embed directory testdata: contains no embeddable files
+ ;;
+ ;; This happens due to Golang can't determine the valid directory of
+ ;; the module which is sourced during setup environment phase, but
+ ;; easy resolved after coping to expected directory "vendor" within
+ ;; the current package, see details in Golang source:
+ ;;
+ ;; - URL: <https://github.com/golang/go/blob/>
+ ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+ ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+ (add-before 'build 'copy-input-to-vendor-directory
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (mkdir "vendor")
+ (copy-recursively
+ (string-append
+ #$(this-package-native-input "go-c2sp-org-cctv-age")
+ "/src/c2sp.org")
+ "vendor/c2sp.org"))))
+ (add-before 'install 'remove-vendor-directory
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (delete-file-recursively "vendor")))))))
+ (native-inputs
+ (list go-c2sp-org-cctv-age
+ go-github-com-rogpeppe-go-internal))
+ (propagated-inputs
(list go-golang-org-x-sys
go-golang-org-x-term
go-golang-org-x-crypto