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
This commit is contained in:
Sharlatan Hellseher 2024-07-13 09:47:34 +01:00
parent 26e7288812
commit 74a464d549
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -119,7 +119,7 @@ (define-public go-c2sp-org-cctv-age
(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 @@ (define-public go-filippo-io-age
(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