aboutsummaryrefslogblamecommitdiff
path: root/aux/guix/with-container.sh
blob: 909cd9e870dcd287fa8ab4bbd11bb2035fba1366 (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 --fallback -m aux/guix/manifest.scm
elif [ "$1" = '-p' ]; then
  guix time-machine -C aux/guix/pinned-channels.scm -- \
    environment --fallback --pure -C -m aux/guix/manifest.scm
else
  guix time-machine -C aux/guix/pinned-channels.scm -- \
    environment --fallback --pure -C -m aux/guix/manifest.scm -- \
      sh -c "$@"
fi