diff options
author | EuAndreh <eu@euandre.org> | 2021-09-13 09:13:38 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-09-13 13:13:48 -0300 |
commit | 281266977b79d6242a518e1397780cbcd374be06 (patch) | |
tree | cd0278f530db43292400f2c54516096e7d2091c8 /aux/containers/guix/with-container.sh | |
parent | aux/ci/ci-build.sh: Use aux/with-container, as a symlink to aux/guix/with-con... (diff) | |
download | git-permalink-281266977b79d6242a518e1397780cbcd374be06.tar.gz git-permalink-281266977b79d6242a518e1397780cbcd374be06.tar.xz |
mv aux/guix/ aux/containers/
Diffstat (limited to 'aux/containers/guix/with-container.sh')
-rwxr-xr-x | aux/containers/guix/with-container.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/aux/containers/guix/with-container.sh b/aux/containers/guix/with-container.sh new file mode 100755 index 0000000..1b7c004 --- /dev/null +++ b/aux/containers/guix/with-container.sh @@ -0,0 +1,11 @@ +#!/bin/sh +set -eu + +if [ -z "${1:-}" ]; then + guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ + environment --fallback -m aux/guix/manifest.scm +else + guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ + environment --fallback -m aux/guix/manifest.scm --pure -C \ + -- sh -c "$@" +fi |