@thiagokokada https://twitter.com/k0kada/status/1527597540681596930 Where do those binaries get built for macOS aarch64, I imagine someone must run a machine somewhere for this to work right?
On hydra, that is the nixpkgs CI/CD: https://hydra.nixos.org/build/177587246
This is amazing. But how do they do it?
Well, we have a very big pool of machines that does the build
Mac minis?
I am not sure, but should be
What is the fastest way for me to download a binary for babashka 0.8.2 from this and redistribute it?
I could then recommend that approach to people who want to use the m1 binary
There should be a less convoluted way, but what I got:
• Go to this link and get the Output store paths (in this example it is /nix/store/i0h0cs4kadrpfass23rd37g7wnw76b0s-babashka-0.8.2): https://hydra.nixos.org/build/177587246#tabs-details
• nix copy --from
• cp /nix/store/i0h0cs4kadrpfass23rd37g7wnw76b0s-babashka-0.8.2/bin/bb .
how long does it generally take for the bb package to be updated there?
Generally a few days
e.g. if I want to do a release, and upload the binary to Github releases, how long do I wait?
ah right...
Once the PR is merged, it will enter on the master branch and eventually it will be evaluated by a Hydra Job.
Once this Hydra job finishes, one of the channels will be updated
I got this from the staging-next channel, but a better one would be from nixpkgs-unstable
I wouldn't say this is the best way to distribute the binaries, but it can be an alternative until you have a proper CI
We don't have any nixos instructions here: https://github.com/babashka/babashka#installation Perhaps we can make them and then point m1 users to that
I prefer not to wait a few days to be able to upload the binary
Well, like I said, this is not a proper CI, and it only works in this specific case because macOS builds on GraalVM are always static
It is just a possible alternative until you have a proper CI
yes, I mean, if m1 users really want the m1 binary they can use nix. So we should document where to start with that
Let me see if I can make a somewhat user friendly way to use babashka with nix, even if "technically" wrong
We can make a separate page in doc about nix perhaps with a longer, more correct instructions for people who want to seriously use it
Yeah, I think it makes sense, but I also think that some people just want something to use
And also I am not sure if I am the best person to write this page
Well I am certainly not and something is better than nothing, is my take on that. But perhaps we can poke someone in #nix for that