From 78a9fd4e3ace4096cc61568b2c49710bddbbff79 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 21 Mar 2021 14:40:33 -0300 Subject: Add base skeleton project files --- aux/guix/manifest.scm | 17 +++++++++++++++++ aux/guix/pinned-channels.scm | 11 +++++++++++ aux/guix/with-container.sh | 13 +++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 aux/guix/manifest.scm create mode 100644 aux/guix/pinned-channels.scm create mode 100755 aux/guix/with-container.sh (limited to 'aux/guix') 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 -- cgit v1.2.3