aboutsummaryrefslogtreecommitdiff
path: root/aux/guix/with-container.sh
blob: 13b6cd3c7b58238eb46e5999f53194f33595fb53 (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