aboutsummaryrefslogblamecommitdiff
path: root/aux/guix/with-container.sh
blob: 6561b2ce11a7919dffd244d3e4788399236ca50a (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                        
                                        


                                                        




                                                        
#!/bin/sh
set -eux

if [ -z "${1:-}" ]; then
  guix time-machine -C aux/guix/pinned-channels.scm -- \
    environment -m aux/guix/manifest.scm
elif [ "$1" = '-p' ]; then
  guix time-machine -C aux/guix/pinned-channels.scm -- \
    environment --pure -C -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