gnu: go-github-com-pion-transport-v2: Fix import paths.

* gnu/packages/golang-web.scm (go-github-com-pion-transport-v2):
[arguments] <phases>: Add 'fix-module-paths, they were not adjusted in
source when v2 was released.

Change-Id: Ie28bcc3921bbe76e3721340af76a3dad6b8c53e3
This commit is contained in:
Sharlatan Hellseher 2024-12-22 13:24:04 +00:00
parent 795df34166
commit 088bdaed4c
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -5240,7 +5240,14 @@ throughout the @url{https://github.com/pion, Pion} modules.")
(base32 "0g5pg6mz61blprccxzysbwldkil84qgwp6404lsp4m9wh44312hf"))))
(arguments
(list
#:import-path "github.com/pion/transport/v2"))
#:import-path "github.com/pion/transport/v2"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-module-paths
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "\\.go$")
(("github.com/pion/transport/v3") import-path))))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs