aboutsummaryrefslogtreecommitdiff
path: root/aux/guix/with-container.sh
blob: b521c82597f94e4063c390a4b8dace142b4f6ed5 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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