gnu: go-torproject-org-pluggable-transports-goptlib: Fix import path.

* gnu/packages/golang.scm (go-torproject-org-pluggable-transports-goptlib)
[arguments] <#:import-path>: Use actual module name from go.mod.
(go-github-com-operatorfoundation-shapeshifter-transports) [arguments]
<#:phases>: Remove obsolete 'patch phase for goptlib.
(go-github-com-operatorfoundation-obfs4) [arguments] <#:phases>: Likewise.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Change-Id: Ib2e49164e2c750694101b497afe1be67c7fe6302
This commit is contained in:
Sarah Morgensen 2021-08-12 21:37:00 -07:00 committed by Sharlatan Hellseher
parent 023c3e0ac4
commit 849f219b72
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1288,11 +1288,6 @@ (define-public go-github-com-operatorfoundation-shapeshifter-transports
`(#:unpack-path "github.com/OperatorFoundation/shapeshifter-transports"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda _
(substitute* (find-files "." "\\.go$")
;; To drop '.git' suffix in import path of goptlib.
(("goptlib\\.git") "goptlib"))))
(replace 'build
(lambda arguments
(for-each
@ -2124,11 +2119,6 @@ (define-public go-github-com-operatorfoundation-obfs4
`(#:unpack-path "github.com/OperatorFoundation/obfs4"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda _
(substitute* (find-files "." "\\.go$")
;; To drop '.git' suffix in import path of goptlib.
(("goptlib\\.git") "goptlib"))))
(replace 'build
(lambda arguments
(for-each
@ -2397,7 +2387,7 @@ (define-public go-torproject-org-pluggable-transports-goptlib
(base32 "1lh938194hvkf8pqgnxwf6hvjv9rv0j3kasi07r2ckrj8sxzk4jc"))))
(build-system go-build-system)
(arguments
`(#:import-path "git.torproject.org/pluggable-transports/goptlib"))
`(#:import-path "git.torproject.org/pluggable-transports/goptlib.git"))
(home-page "https://gitweb.torproject.org/pluggable-transports/goptlib.git/")
(synopsis "Go pluggable transports library")
(description "GoPtLib is a library for writing Tor pluggable transports in