From c1d4d5b2b0ba2220bd31b20ea02eb4ec80bdc8ac Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 7 Dec 2023 22:17:53 +0100 Subject: Initial commit. --- guix-devshell | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 guix-devshell (limited to 'guix-devshell') diff --git a/guix-devshell b/guix-devshell new file mode 100644 index 0000000..85d8c91 --- /dev/null +++ b/guix-devshell @@ -0,0 +1,22 @@ +#!/bin/sh + +# SPDX-License-Identifier: CC0-1.0 +# +# Copyright (C) 2023 Wojtek Kosior + +set -eu + +SOURCE_DIR="$(cd "$(dirname "$0")" && pwd -P)" +GUIX_SCM="$SOURCE_DIR"/guix.scm + +EXTRA_PACKAGES="reuse texinfo man-db" + +if test 0 = "$#" +then : + printf 'guix shell -Df '\''%s'\'' %s\n' "$GUIX_SCM" "$EXTRA_PACKAGES" + guix shell -Df "$GUIX_SCM" $PACKAGES +else : + shift + printf 'guix shell -Df '\''%s'\'' %s -- %s\n' "$PACKAGES" "$*" + guix shell -Df "$GUIX_SCM" $PACKAGES -- "$@" +fi -- cgit v1.2.3