Skip to content

Conversation

@phrohdoh
Copy link
Contributor

This changeset adds a babashka.org package which provides the bb executable, from pre-built releases (available from GitHub).

This allows pkgx users to successfully execute commands such as pkgx bb -e '(println "hi")'.

https://babashka.org

Fast native Clojure scripting runtime
Avoid switching between Clojure and bash scripts. Enjoy your parens on the command line.

As you can see from the build script, the URL to the GitHub releases are version, platform, and architecture-specific so there is no distributable in this package manifest.

@jhheider
Copy link
Contributor

is it possible to build from source? it looks like it's written in clojure, so you might need the curl you're using to get the compiler to bootstrap itself. it looks like even their brew tap is using their CD builds.

might get a little hairy: https://github.com/babashka/babashka/blob/master/doc/build.md

we should try, but i won't be surprised if it quickly becomes too much.

@jhheider
Copy link
Contributor

you know, it looks like a bear. we'll vendor this for now.

@phrohdoh
Copy link
Contributor Author

phrohdoh commented Dec 30, 2025

you know, it looks like a bear. we'll vendor this for now.

I agree, it looks quite hairy upon initial investigation. I may be able to make time in the future to change this to a build-from-source package.

Shall I add the following to this package.yml?

warnings:
  - vendored

Updated package.yml to improve build and test scripts.
@jhheider
Copy link
Contributor

yeah, i added and did some cleanup.

@jhheider jhheider merged commit da1a279 into pkgxdev:main Dec 30, 2025
5 checks passed
@jhheider
Copy link
Contributor

thanks, @phrohdoh !

@phrohdoh phrohdoh deleted the new/babashka.org branch December 30, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants