diff options
Diffstat (limited to 'aux/containers/guix/with-container.sh')
-rwxr-xr-x | aux/containers/guix/with-container.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/aux/containers/guix/with-container.sh b/aux/containers/guix/with-container.sh index 045e757..fcbb8b5 100755 --- a/aux/containers/guix/with-container.sh +++ b/aux/containers/guix/with-container.sh @@ -1,7 +1,17 @@ #!/bin/sh set -eu -ENV_CMD='guix time-machine --fallback -C aux/containers/guix/pinned-channels.scm -- environment --fallback -m aux/containers/guix/manifest.scm' +CHANNEL_REMOTE='https://euandreh.xyz/package-repository.git' +CHANNEL_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/euandreh-guix-channel" + +if [ ! -d "$CHANNEL_DIR" ]; then + git clone "$CHANNEL_REMOTE" "$CHANNEL_DIR" +fi + +git -C "$CHANNEL_DIR" pull + +ENV_CMD="guix environment -L $CHANNEL_DIR/src/ -m aux/containers/guix/manifest.scm" + if [ -z "${1:-}" ]; then $ENV_CMD else |