From ccbb165fb2ff4ce82a90db0ecd2a8bde8fe896ba Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 29 Dec 2024 16:15:57 +0000 Subject: [PATCH] gnu: go-github-com-expr-lang-expr: Fix build. * gnu/packages/golang-xyz.scm (go-github-com-expr-lang-expr) [source] : Delete submodules with their own go.mod files which need to be packed separately. Change-Id: Ie99734135bf8fdc4525b856d232485501cdd12d7 --- gnu/packages/golang-xyz.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5246df21d5..e241f9de40 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4045,7 +4045,16 @@ more similar API to regexp.")))) (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "08p7gcxm7psgn1rzhhy2s2va59ssy77x8wd706gdp2pif7wln883")))) + (base32 "08p7gcxm7psgn1rzhhy2s2va59ssy77x8wd706gdp2pif7wln883")) + (modules '((guix build utils))) + (snippet + #~(begin + ;; Submodules with their own go.mod files and packaged separately: + ;; + ;; - github.com/expr-lang/expr/repl + ;; - github.com/expr-lang/expr/debug + (for-each delete-file-recursively + (list "repl" "debug")))))) (build-system go-build-system) (arguments (list