mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
gnu: mongo-tools: Fix build.
I guess this broke when upgrading go. I did try upgrading to the later patch and minor releases, but they had similar problems, so lets upgrade separately. * gnu/packages/databases.scm (mongo-tools)[arguments]: Add patch-source phase.
This commit is contained in:
parent
b4c684cdf3
commit
fe5969656a
1 changed files with 8 additions and 0 deletions
|
@ -2868,6 +2868,14 @@ (define-public mongo-tools
|
|||
(delete-file-recursively
|
||||
"src/github.com/mongodb/mongo-tools/vendor")
|
||||
#t))
|
||||
(add-after 'delete-bundled-source-code 'patch-source
|
||||
(lambda _
|
||||
;; Remove a redundant argument that causes compilation to fail.
|
||||
(substitute*
|
||||
"src/github.com/mongodb/mongo-tools/mongorestore/filepath.go"
|
||||
(("skipping restore of system.profile collection\", db)")
|
||||
"skipping restore of system.profile collection\")"))
|
||||
#t))
|
||||
;; We don't need to install the source code for end-user applications
|
||||
(delete 'install-source)
|
||||
(replace 'build
|
||||
|
|
Loading…
Reference in a new issue