gnu: clojure: Remove wrapper in favor of using clojure-tools.

* gnu/packages/clojure.scm (clojure)[arguments]: Remove generated wrapper
around clojure.jar, as it conflicts with the clojure-tools package.

Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
This commit is contained in:
Reily Siegel 2021-12-23 18:04:50 -05:00 committed by Ricardo Wurmus
parent 8cf2817d4c
commit 9fe48723c8
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -121,23 +121,7 @@ (define (extract-library name)
(add-after 'install-license-files 'install-doc
(cut install-doc #:doc-dirs '("doc/clojure/") <...>))
(add-after 'install-doc 'install-javadoc
(install-javadoc "target/javadoc/"))
(add-after 'install 'make-wrapper
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(wrapper (string-append out "/bin/clojure")))
(mkdir-p (string-append out "/bin"))
(with-output-to-file wrapper
(lambda _
(display
(string-append
"#!"
(which "sh")
"\n\n"
(assoc-ref inputs "jre") "/bin/java -jar "
out "/share/java/clojure.jar \"$@\"\n"))))
(chmod wrapper #o555))
#t)))))
(install-javadoc "target/javadoc/")))))
(native-inputs libraries)
(home-page "https://clojure.org/")
(synopsis "Lisp dialect running on the JVM")