nongnu: babashka: Use G-expressions.

* nongnu/packages/clojure.scm (babashka)[arguments]: Use G-expressions.
This commit is contained in:
Hilton Chain 2025-05-24 10:35:47 +08:00
parent f443f09c5f
commit 029735b18e
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -189,22 +189,21 @@ Clojure and Java libraries, and start Clojure programs.")
"1bmfnkh7mi15h6gkw9az6f2p4grcyi7cj90f86xg4ljbjnidp2n3")))) "1bmfnkh7mi15h6gkw9az6f2p4grcyi7cj90f86xg4ljbjnidp2n3"))))
(build-system binary-build-system) (build-system binary-build-system)
(arguments (arguments
`(#:patchelf-plan (list #:patchelf-plan
'(("bb" ("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)))
(add-after 'patch-shebangs 'wrap-programs (add-after 'patch-shebangs 'wrap-programs
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda _
(let ((out (assoc-ref outputs "out")) (let ((clojure-tools #$(this-package-input "clojure-tools")))
(clojure-tools (assoc-ref inputs "clojure-tools"))) (wrap-program (string-append #$output "/bin/bb")
(wrap-program (string-append out "/bin/bb") `("BABASHKA_CLASSPATH" ":" suffix
`("BABASHKA_CLASSPATH" ":" suffix ,(find-files clojure-tools "\\.jar$")))))))))
,(find-files clojure-tools "\\.jar$")))))))))
(inputs (list clojure-tools zlib)) (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")