diff options
| author | EuAndreh <eu@euandre.org> | 2021-03-21 14:40:33 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-03-21 16:02:58 -0300 |
| commit | 78a9fd4e3ace4096cc61568b2c49710bddbbff79 (patch) | |
| tree | dfe2f7b12abcc977287658e4f4cf99b95fa32124 /aux/guix/with-container.sh | |
| download | git-permalink-78a9fd4e3ace4096cc61568b2c49710bddbbff79.tar.gz git-permalink-78a9fd4e3ace4096cc61568b2c49710bddbbff79.tar.xz | |
Add base skeleton project files
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 |
