Hi help-guix,
I have a small repo that I use to manage the handful of machines I run
under guix system. At some point I decided it was useful to have a
little front-end script that lets me interactively choose the machine to
deploy. I run it like this (for example):
guile -e build -s ./bin/deploy t470
which ultimately runs something along the lines of
(system* "guix" "build" "-L" "." "-e" "(@ (dlguix machines t470) %os)")
There is no real reason to shell out to another process except that I
couldn't figure out how to call a procedure equivalent to the "guix
build" command. I would be much happier if I could replace this with
something like
(guix-build `(@ (dlguix machines t470) %os))
Is it possible to do something like this? I wasn't able to trace the
source code well enough to figure it out.
Best wishes,
Dan