gnu: go-github-com-shadowsocks-go-shadowsocks2: Enable all tests.

* gnu/packages/golang-crypto.scm (go-github-com-shadowsocks-go-shadowsocks2)
[arguments]: <#:phases>: Use custom 'check phase.

Change-Id: Ia7efa74417d47a4679befd11ca3e76aaf0bc8c48
This commit is contained in:
Sharlatan Hellseher 2024-09-22 12:57:48 +01:00
parent 8f14e8c9c3
commit 0a4e3c8041
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1588,7 +1588,17 @@ wide-block encryption mode developed by Halevi and Rogaway.")
(base32 "0n24h5ffgc3735y0mmp6dbhxdfm9fk13i26fqxxw7i75qnmvjvyg"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/shadowsocks/go-shadowsocks2"))
(list
#:import-path "github.com/shadowsocks/go-shadowsocks2"
#:phases
#~(modify-phases %standard-phases
;; XXX: Workaround for go-build-system's lack of Go modules
;; support.
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
(list go-github-com-riobard-go-bloom
go-golang-org-x-crypto))