aboutsummaryrefslogtreecommitdiff
path: root/aux/guix/with-container.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-03-21 14:40:33 -0300
committerEuAndreh <eu@euandre.org>2021-03-21 16:02:58 -0300
commit78a9fd4e3ace4096cc61568b2c49710bddbbff79 (patch)
treedfe2f7b12abcc977287658e4f4cf99b95fa32124 /aux/guix/with-container.sh
downloadgit-permalink-78a9fd4e3ace4096cc61568b2c49710bddbbff79.tar.gz
git-permalink-78a9fd4e3ace4096cc61568b2c49710bddbbff79.tar.xz
Add base skeleton project files
Diffstat (limited to 'aux/guix/with-container.sh')
-rwxr-xr-xaux/guix/with-container.sh13
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