guix: import: go: Sort inputs alphabetically.

* guix/import/go.scm: (go-module->guix-package): Sort propagated-inputs
alphabetically.

Change-Id: Ie21e7a819ba706c63f16ebf407ae0461780fa2d1
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Patrick Norton 2025-12-26 10:32:03 -05:00 committed by Sharlatan Hellseher
parent 02dd2b8552
commit 63b71a5152
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -688,12 +688,14 @@ When VERSION is unspecified, the latest version available is used."
'()
`(#:unpack-path ,root-module-path))))
,@(maybe-propagated-inputs
(map (match-lambda
((name version)
(go-module->guix-package-name name (strip-v-prefix version)))
(name
(go-module->guix-package-name name)))
dependencies))
(sort!
(map (match-lambda
((name version)
(go-module->guix-package-name name (strip-v-prefix version)))
(name
(go-module->guix-package-name name)))
dependencies)
string<?))
(home-page ,(format #f "https://~a" root-module-path))
(synopsis ,synopsis)
(description ,(and=> description beautify-description))