diff options
| author | Freya Murphy <freya@freyacat.org> | 2024-12-12 22:53:10 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2024-12-19 23:37:47 -0500 |
| commit | 55de09d9095b8f14239b778bb1eda7cdde95d9f0 (patch) | |
| tree | 6c6128e70dff5902eb62c67d82bf2eb089a2f492 /scripts/build-installer | |
| parent | fix build-installer on posix shell (diff) | |
| download | dotfiles-guix-55de09d9095b8f14239b778bb1eda7cdde95d9f0.tar.gz dotfiles-guix-55de09d9095b8f14239b778bb1eda7cdde95d9f0.tar.bz2 dotfiles-guix-55de09d9095b8f14239b778bb1eda7cdde95d9f0.zip | |
add guix installer workflow
Diffstat (limited to 'scripts/build-installer')
| -rwxr-xr-x | scripts/build-installer | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/scripts/build-installer b/scripts/build-installer index 10cd84c..1293315 100755 --- a/scripts/build-installer +++ b/scripts/build-installer @@ -1,28 +1,8 @@ #!/bin/sh +set -e -o pipefail retry="$(dirname $0)/guix-retry" repo="$(realpath "$(dirname $0)/..")" -extra_args="" - -if [ ! -d /gnu/store ]; then -# we are likely in a non guix system -# just for building the installer -# make sure to authorize the substitute -# servers for nonguix and sakura -guix archive --authorize < "$repo/files/keys/nonguix.pub" -guix archive --authorize < "$repo/files/keys/sakura.pub" -substitutes=$( -(cat <<EOF -https://substitutes.nonguix.org -https://substitutes.freya.cat -https://bordeaux.guix.gnu.org -https://ci.guix.gnu.org -EOF -) | tr '\n' ' ') -extra_args="--substitute-urls=\"$substitutes\"" -fi - -command="\"$retry\" guix time-machine -C \"$repo/channels.scm\" $extra_args -- system -L \"$repo/modules\" image -t iso9660 \"$repo/systems/installer.scm\"" +command="\"$retry\" guix system -L \"$repo/modules\" image -t iso9660 \"$repo/systems/installer.scm\"" image=$(sh -c "$command") - date="$(date -Iseconds)" cp $image "guix-installer-$date.iso" |