diff options
author | r0man <roman@burningswell.com> | 2022-07-16 20:24:22 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-07-23 00:39:57 +0200 |
commit | 884c87a1006a35e78f4db4eafd5b98d4b4328136 (patch) | |
tree | 197660cc4a8761459a0fdd0a8dc6d3740be046c2 /gnu/packages | |
parent | af7dd521363ea9b8476b8e92a44782678b3b5a5e (diff) | |
download | guix-884c87a1006a35e78f4db4eafd5b98d4b4328136.tar.gz guix-884c87a1006a35e78f4db4eafd5b98d4b4328136.zip |
gnu: clojure-algo-generic: Fix test failing under AOT in Clojure 1.11.1.
* gnu/packages/clojure.scm (clojure-algo-generic)[arguments]: Add
'fix-import' phase.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/clojure.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm index dfff54f8ee..840584b162 100644 --- a/gnu/packages/clojure.scm +++ b/gnu/packages/clojure.scm @@ -275,7 +275,15 @@ Clojure repl, use Clojure and Java libraries, and start Clojure programs.") (arguments '(#:source-dirs '("src/main/clojure/") #:test-dirs '("src/test/clojure/") - #:doc-dirs '())) + #:doc-dirs '() + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-import + (lambda _ + (substitute* + "src/main/clojure/clojure/algo/generic/math_functions.clj" + (("clojure.algo.generic.math-functions") + "clojure.algo.generic.math-functions\n(:refer-clojure :exclude [abs])"))))))) (synopsis "Generic versions of common functions") (description "Generic versions of commonly used functions, implemented as multimethods |