1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 10:30:43 +02:00

gnu: go-github-com-blanu-dust: Simplify.

* gnu/packages/golang.scm (go-github-com-blanu-dust) [source] <snippet>:
Delete broken examples; fix module path on one test file.
[arguments] <skip-build?>: No go files in project's root.
<phases>: Use default 'build, 'check and 'install.

Change-Id: I9431eae2701892b28a8dc564ffcd31a6f24a4a0b
This commit is contained in:
Sharlatan Hellseher 2025-02-22 08:26:42 +00:00
parent 45f7e86f38
commit 946a95a4cd
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1221,76 +1221,25 @@ networks where it would otherwise be blocked or heavily throttled.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1lya21w06ramq37af5hdiafbrv5k1csjm7k7m00v0bfxg3ni01bs"))))
(base32 "1lya21w06ramq37af5hdiafbrv5k1csjm7k7m00v0bfxg3ni01bs"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Examples are all broken.
(delete-file-recursively "modelgen/examples")
;; Fix module path in test file.
(substitute* "go/huffman/huffman_test.go"
(("github.com/blanu/Dust/go/DustModel/huffman")
"github.com/blanu/Dust/go/huffman"))))))
(build-system go-build-system)
(arguments
`(#:unpack-path "github.com/blanu/Dust"
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda arguments
(for-each
(lambda (directory)
(apply (assoc-ref %standard-phases 'build)
`(,@arguments #:import-path ,directory)))
(list
"github.com/blanu/Dust/go/buf"
"github.com/blanu/Dust/go/dist"
"github.com/blanu/Dust/go/huffman"
"github.com/blanu/Dust/go/model1"
"github.com/blanu/Dust/go/prim1"
"github.com/blanu/Dust/go/proc"
"github.com/blanu/Dust/go/sillyHex"
"github.com/blanu/Dust/go/skein"
"github.com/blanu/Dust/go/v2/Dust2_proxy"
"github.com/blanu/Dust/go/v2/Dust2_tool"
"github.com/blanu/Dust/go/v2/crypting"
"github.com/blanu/Dust/go/v2/interface"
"github.com/blanu/Dust/go/v2/shaping"))))
(replace 'check
(lambda arguments
(for-each
(lambda (directory)
(apply (assoc-ref %standard-phases 'check)
`(,@arguments #:import-path ,directory)))
(list
"github.com/blanu/Dust/go/buf"
"github.com/blanu/Dust/go/dist"
;; Repository is missing test files directory.
;;"github.com/blanu/Dust/go/huffman"
"github.com/blanu/Dust/go/model1"
"github.com/blanu/Dust/go/prim1"
"github.com/blanu/Dust/go/proc"
"github.com/blanu/Dust/go/sillyHex"
"github.com/blanu/Dust/go/skein"
"github.com/blanu/Dust/go/v2/Dust2_proxy"
"github.com/blanu/Dust/go/v2/Dust2_tool"
"github.com/blanu/Dust/go/v2/crypting"
"github.com/blanu/Dust/go/v2/interface"
"github.com/blanu/Dust/go/v2/shaping"))))
(replace 'install
(lambda arguments
(for-each
(lambda (directory)
(apply (assoc-ref %standard-phases 'install)
`(,@arguments #:import-path ,directory)))
(list
"github.com/blanu/Dust/go/buf"
"github.com/blanu/Dust/go/dist"
"github.com/blanu/Dust/go/huffman"
"github.com/blanu/Dust/go/model1"
"github.com/blanu/Dust/go/prim1"
"github.com/blanu/Dust/go/proc"
"github.com/blanu/Dust/go/sillyHex"
"github.com/blanu/Dust/go/skein"
"github.com/blanu/Dust/go/v2/Dust2_proxy"
"github.com/blanu/Dust/go/v2/Dust2_tool"
"github.com/blanu/Dust/go/v2/crypting"
"github.com/blanu/Dust/go/v2/interface"
"github.com/blanu/Dust/go/v2/shaping")))))))
(list
#:skip-build? #t
#:import-path "github.com/blanu/Dust"))
(propagated-inputs
(list go-github-com-operatorfoundation-ed25519
go-github-com-op-go-logging go-golang-org-x-crypto))
go-github-com-op-go-logging
go-golang-org-x-crypto))
(home-page "https://github.com/blanu/Dust")
(synopsis "Censorship-resistant internet transport protocol")
(description "Dust is an Internet protocol designed to resist a number of