aboutsummaryrefslogtreecommitdiff
path: root/aux/guix/with-container.sh
blob: 3e6a5902f0c2d4510ade2e18f41c3caac06aa48a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -eux

if [ -z "${1:-}" ]; then
  guix time-machine -C aux/guix/pinned-channels.scm -- \
    environment --pure -C -m aux/guix/manifest.scm
elif [ "$1" = '-i' ]; then
  guix time-machine -C aux/guix/pinned-channels.scm -- \
    environment -m aux/guix/manifest.scm
else
  guix time-machine -C aux/guix/pinned-channels.scm -- \
    environment --pure -C -m aux/guix/manifest.scm -- \
      sh -c "$@"
fi