diff options
| author | EuAndreh <eu@euandre.org> | 2022-03-06 02:29:37 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2022-03-06 02:29:37 -0300 |
| commit | 8f6060c5fe07c475cd53c367ab791251168ab460 (patch) | |
| tree | 44ba6bfa1a0e3debbb70944839c3a682d3ee7c53 /aux/containers | |
| parent | aux/: Update (diff) | |
| download | toph-8f6060c5fe07c475cd53c367ab791251168ab460.tar.gz toph-8f6060c5fe07c475cd53c367ab791251168ab460.tar.xz | |
aux/: Update
Diffstat (limited to 'aux/containers')
| -rw-r--r-- | aux/containers/guix/manifest.scm | 24 | ||||
| -rwxr-xr-x | aux/containers/guix/with-container.sh | 19 |
2 files changed, 43 insertions, 0 deletions
diff --git a/aux/containers/guix/manifest.scm b/aux/containers/guix/manifest.scm new file mode 100644 index 0000000..1870255 --- /dev/null +++ b/aux/containers/guix/manifest.scm @@ -0,0 +1,24 @@ +(specifications->manifest + (map symbol->string + '(bash + coreutils + findutils + diffutils + grep + sed + git + tar + gawk + make + makefile2graph + graphviz + shellcheck + pandoc + gettext + po4a-text + mdpo-patched + hunspell + hunspell-dict-en-utf8 + hunspell-dict-pt-utf8 + hunspell-dict-fr-utf8 + hunspell-dict-eo-utf8))) diff --git a/aux/containers/guix/with-container.sh b/aux/containers/guix/with-container.sh new file mode 100755 index 0000000..fcbb8b5 --- /dev/null +++ b/aux/containers/guix/with-container.sh @@ -0,0 +1,19 @@ +#!/bin/sh +set -eu + +CHANNEL_REMOTE='https://euandreh.xyz/package-repository.git' +CHANNEL_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/euandreh-guix-channel" + +if [ ! -d "$CHANNEL_DIR" ]; then + git clone "$CHANNEL_REMOTE" "$CHANNEL_DIR" +fi + +git -C "$CHANNEL_DIR" pull + +ENV_CMD="guix environment -L $CHANNEL_DIR/src/ -m aux/containers/guix/manifest.scm" + +if [ -z "${1:-}" ]; then + $ENV_CMD +else + $ENV_CMD --pure -C -- sh -c "$@" +fi |
