mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-13 18:40:57 +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:
parent
45f7e86f38
commit
946a95a4cd
1 changed files with 15 additions and 66 deletions
|
@ -1221,76 +1221,25 @@ networks where it would otherwise be blocked or heavily throttled.")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(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)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:unpack-path "github.com/blanu/Dust"
|
(list
|
||||||
#:phases
|
#:skip-build? #t
|
||||||
(modify-phases %standard-phases
|
#:import-path "github.com/blanu/Dust"))
|
||||||
(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")))))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-operatorfoundation-ed25519
|
(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")
|
(home-page "https://github.com/blanu/Dust")
|
||||||
(synopsis "Censorship-resistant internet transport protocol")
|
(synopsis "Censorship-resistant internet transport protocol")
|
||||||
(description "Dust is an Internet protocol designed to resist a number of
|
(description "Dust is an Internet protocol designed to resist a number of
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue