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


         
                        

                                                                         
                          

                                                                         
    

                                                                                       
  
#!/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