diff options
author | EuAndreh <eu@euandre.org> | 2021-03-21 14:40:33 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-03-21 16:02:58 -0300 |
commit | 78a9fd4e3ace4096cc61568b2c49710bddbbff79 (patch) | |
tree | dfe2f7b12abcc977287658e4f4cf99b95fa32124 /aux/guix | |
download | git-permalink-78a9fd4e3ace4096cc61568b2c49710bddbbff79.tar.gz git-permalink-78a9fd4e3ace4096cc61568b2c49710bddbbff79.tar.xz |
Add base skeleton project files
Diffstat (limited to 'aux/guix')
-rw-r--r-- | aux/guix/manifest.scm | 17 | ||||
-rw-r--r-- | aux/guix/pinned-channels.scm | 11 | ||||
-rwxr-xr-x | aux/guix/with-container.sh | 13 |
3 files changed, 41 insertions, 0 deletions
diff --git a/aux/guix/manifest.scm b/aux/guix/manifest.scm new file mode 100644 index 0000000..a689235 --- /dev/null +++ b/aux/guix/manifest.scm @@ -0,0 +1,17 @@ +(specifications->manifest + (map symbol->string + '(bash + coreutils + findutils + diffutils + grep + sed + git + tar + gzip + gawk + make + perl + shellcheck + groff + pandoc))) diff --git a/aux/guix/pinned-channels.scm b/aux/guix/pinned-channels.scm new file mode 100644 index 0000000..b026813 --- /dev/null +++ b/aux/guix/pinned-channels.scm @@ -0,0 +1,11 @@ +(cons* + (channel + (name 'xyz-euandreh) + (url "git://git.euandreh.xyz/package-repository") + (branch "main") + (introduction + (make-channel-introduction + "d749e053e6db365069cb9b2ef47a78b06f9e7361" + (openpgp-fingerprint + "5BDA E9B8 B2F6 C6BC BB0D 6CE5 81F9 0EC3 CD35 6060")))) + %default-channels) diff --git a/aux/guix/with-container.sh b/aux/guix/with-container.sh new file mode 100755 index 0000000..13b6cd3 --- /dev/null +++ b/aux/guix/with-container.sh @@ -0,0 +1,13 @@ +#!/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 |