mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
build-system: go-vendored: Set file name for vendored Go dependencies.
This commit is contained in:
1 file changed
+8
-9
@@ -43,15 +43,14 @@
|
|||||||
(build-inputs
|
(build-inputs
|
||||||
`(,@(if (and source vendor-hash)
|
`(,@(if (and source vendor-hash)
|
||||||
`(("vendored-go-dependencies"
|
`(("vendored-go-dependencies"
|
||||||
,(if (content-hash? vendor-hash)
|
,(origin
|
||||||
(origin
|
(method (go-mod-vendor #:go go))
|
||||||
(method (go-mod-vendor #:go go))
|
(uri source)
|
||||||
(uri source)
|
(file-name (string-append name "-vendored-go-dependencies"))
|
||||||
(hash vendor-hash))
|
(hash
|
||||||
(origin
|
(if (content-hash? vendor-hash)
|
||||||
(method (go-mod-vendor #:go go))
|
vendor-hash
|
||||||
(uri source)
|
(content-hash vendor-hash))))))
|
||||||
(sha256 vendor-hash)))))
|
|
||||||
'())
|
'())
|
||||||
,@(bag-build-inputs go-bag)))
|
,@(bag-build-inputs go-bag)))
|
||||||
(build (bag-build go-bag))
|
(build (bag-build go-bag))
|
||||||
|
|||||||
Reference in new issue
Block a user