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

                        

                                                                         
                          

                                                                         


                                                                         
    
                                                                         

                                                                           
  
#!/bin/sh
set -eu

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
elif [ "$1" = '-C' ]; then
	guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \
		pack -f docker -S/bin=bin -m aux/guix/manifest.scm -v3
else
	guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \
		environment --fallback -m aux/guix/manifest.scm --pure -C \
			-- sh -c "$@"
fi