mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2026-01-25 03:54:58 -06:00
nongnu: babashka: Add validate-classpath phase.
* nongnu/packages/clojure.scm (babashka): Validate babashka runs after build. Signed-off-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
parent
7be4267bd9
commit
5516beb575
1 changed files with 11 additions and 1 deletions
|
|
@ -198,7 +198,17 @@ perform refactors and more.")
|
|||
(let ((clojure-tools #$(this-package-input "clojure-tools")))
|
||||
(wrap-program (string-append #$output "/bin/bb")
|
||||
`("BABASHKA_CLASSPATH" ":" suffix
|
||||
,(find-files clojure-tools "\\.jar$")))))))))
|
||||
,(find-files clojure-tools "\\.jar$"))))))
|
||||
(add-after 'validate-runpath 'validate-classpath
|
||||
(lambda _
|
||||
(call-with-temporary-output-file
|
||||
(lambda (name port)
|
||||
(display "{:deps {org.clojure/data.xml {:mvn/version \"1.1.0\"}}}" port)
|
||||
(close port)
|
||||
(unless (invoke (string-append #$output "/bin/bb")
|
||||
"--config" name
|
||||
"-e" "(System/exit 0)")
|
||||
(error "Classpath error. See output.")))))))))
|
||||
(inputs (list clojure-tools zlib))
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(home-page "https://github.com/babashka/babashka")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue