mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2025-10-02 02:14:59 +00:00
nongnu: babashka: Wrap BABASHKA_CLASSPATH.
* nongnu/packages/clojure.scm (babashka)[inputs]: Add clojure-tools. Remove gcc:lib. [arguments]<#:patchelf-plan>: Adjust accordingly. <#:phases>: Wrap BABASHKA_CLASSPATH. Signed-off-by: Hilton Chain <hako@ultrarare.space> Modified-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
parent
d8cef87267
commit
f443f09c5f
1 changed files with 10 additions and 3 deletions
|
@ -190,15 +190,22 @@ Clojure and Java libraries, and start Clojure programs.")
|
||||||
(build-system binary-build-system)
|
(build-system binary-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:patchelf-plan
|
`(#:patchelf-plan
|
||||||
'(("bb" ("gcc" "zlib")))
|
'(("bb" ("zlib")))
|
||||||
#:install-plan
|
#:install-plan
|
||||||
'(("./bb" "/bin/"))
|
'(("./bb" "/bin/"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'chmod
|
(add-after 'unpack 'chmod
|
||||||
(lambda _
|
(lambda _
|
||||||
(chmod "bb" #o755))))))
|
(chmod "bb" #o755)))
|
||||||
(inputs (list `(,gcc "lib") zlib))
|
(add-after 'patch-shebangs 'wrap-programs
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(clojure-tools (assoc-ref inputs "clojure-tools")))
|
||||||
|
(wrap-program (string-append out "/bin/bb")
|
||||||
|
`("BABASHKA_CLASSPATH" ":" suffix
|
||||||
|
,(find-files clojure-tools "\\.jar$")))))))))
|
||||||
|
(inputs (list clojure-tools zlib))
|
||||||
(supported-systems '("x86_64-linux"))
|
(supported-systems '("x86_64-linux"))
|
||||||
(home-page "https://github.com/babashka/babashka")
|
(home-page "https://github.com/babashka/babashka")
|
||||||
(synopsis "Native, fast starting Clojure interpreter for scripting")
|
(synopsis "Native, fast starting Clojure interpreter for scripting")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue