#!/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