How do I compile that into a standalone executable. It SEEMS like I could make a guix shell maybe and then figure out how to compile that into a standalone image or something I can share with people, but I’m not totally sure.
Also, there doesn’t seem to be any documentation on how to create a proper guix.scm file, other than dthompsons example in his article. I guess I just have to copy it and modify it a little?
So to be clear, what I want is to compile my little guile program into a standalone executable, and then send that to someone else, and that other person can just go
Okay so after taking with David Thompson on Mastodon, seems like this isn’t currently possible
But then, the question arises, is there a way to make a super simple C wrapper that calls Guile and starts up the runtime? That way, all I need is one `bootstrap.c` file that i need to compile and run.
So what I’m thinking in terms of folder structure is something like
my cool project
/git-submodule-to-guile
bootstrap.c
hello_guile.scm
Makefile
And then by running `make` you startup your guile program
The idea is that you bundle your guile scheme scripts using CMake, and then load in your “main” script in the c program to start it up.
This works but it uses CMake, and I don’t think I can bundle other guile libraries with it (like guile-websocket or threads). It’s also pretty fragile since I’m just copying the scheme files using CMake, which is NOT recommended.
So the next step would be to somehow switch out CMake for Guix somehow I think so I can bundle everything together nicely