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