diff options
Diffstat (limited to 'aux/guix/with-container.sh')
| -rwxr-xr-x | aux/guix/with-container.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/aux/guix/with-container.sh b/aux/guix/with-container.sh new file mode 100755 index 0000000..13b6cd3 --- /dev/null +++ b/aux/guix/with-container.sh @@ -0,0 +1,13 @@ +#!/bin/sh +set -eux + +if [ -z "${1:-}" ]; then + guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ + environment --fallback -m aux/guix/manifest.scm +elif [ "$1" = '-p' ]; then + guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ + environment --fallback -m aux/guix/manifest.scm --pure -C +else + guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ + environment --fallback -m aux/guix/manifest.scm --pure -C -- sh -c "$@" +fi |
