Merge branch 'aarch64-babashka' into 'master'

nongnu: babashka: Update to 1.12.194 and support aarch64.

See merge request nonguix/nonguix!563
This commit is contained in:
r0man 2025-02-07 19:07:36 +00:00
commit 7577d96885

View File

@ -151,28 +151,39 @@ perform refactors and more.")
(define-public babashka (define-public babashka
(package (package
(name "babashka") (name "babashka")
(version "1.3.189") (version "1.12.194")
(source (origin (source (origin
(method url-fetch/tarbomb) (method url-fetch/tarbomb)
(uri (string-append "https://github.com/babashka/babashka" (uri (string-append "https://github.com/babashka/babashka"
"/releases/download/v" version "/babashka-" "/releases/download/v" version "/babashka-"
version "-linux-amd64.tar.gz")) version "-linux-"
(cond ((target-aarch64?)
"aarch64")
((target-x86-64?)
"amd64"))
"-static.tar.gz"))
(sha256 (sha256
(base32 (base32
"1gzra3y5iljjqi4rj1qxr3yniqla3qnhv881gkzrp788fwsvlmwv")))) (cond ((target-aarch64?)
"0sxv0dqfvn98p6ki6m0awrcww3zgj5c1qx4s0sdphsj3pwg4w754")
((target-x86-64?)
"0m0p3zq7m9zaj24rx7qm2sdxncg112yayy6l22dsxlxj6fpylf1b"))))))
(build-system binary-build-system) (build-system binary-build-system)
(arguments (arguments
`(#:patchelf-plan (list
'(("bb" ("gcc" "zlib"))) #:patchelf-plan
#:install-plan (if (target-aarch64?)
'(("./bb" "/bin/")) `'(("bb" ("gcc" "libc" "zlib")))
#:phases #f)
(modify-phases %standard-phases #:install-plan
(add-after 'unpack 'chmod `'(("./bb" "/bin/"))
(lambda _ #:phases
(chmod "bb" #o755)))))) #~(modify-phases %standard-phases
(add-after 'unpack 'chmod
(lambda _
(chmod "bb" #o755))))))
(inputs (list `(,gcc "lib") zlib)) (inputs (list `(,gcc "lib") zlib))
(supported-systems '("x86_64-linux")) (supported-systems '("aarch64-linux" "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")
(description "Babashka is a native Clojure interpreter for scripting with (description "Babashka is a native Clojure interpreter for scripting with