From 281266977b79d6242a518e1397780cbcd374be06 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 13 Sep 2021 09:13:38 -0300 Subject: mv aux/guix/ aux/containers/ --- aux/containers/guix/with-container.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 aux/containers/guix/with-container.sh (limited to 'aux/containers/guix/with-container.sh') diff --git a/aux/containers/guix/with-container.sh b/aux/containers/guix/with-container.sh new file mode 100755 index 0000000..1b7c004 --- /dev/null +++ b/aux/containers/guix/with-container.sh @@ -0,0 +1,11 @@ +#!/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 +else + guix time-machine --fallback -C aux/guix/pinned-channels.scm -- \ + environment --fallback -m aux/guix/manifest.scm --pure -C \ + -- sh -c "$@" +fi -- cgit v1.2.3