Files
self cc9bec550b chore: use conventional Guix manifest
Rename the repo Guix development manifest to manifest.scm and update the wrapper, direnv integration, and dev-branch helper to use local Guix by default with an optional --build-host.
2026-06-01 19:37:43 +02:00

30 lines
712 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
root="$(cd "$script_dir/.." && pwd)"
if [ ! -f "$root/manifest.scm" ]; then
root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
fi
channels="$root/guix/channels.scm"
manifest="$root/manifest.scm"
if [ ! -f "$channels" ] || [ ! -f "$manifest" ]; then
echo "guix-dev: expected guix/channels.scm and manifest.scm in the project root" >&2
exit 1
fi
if [ -f "$root/.env" ]; then
set -a
. "$root/.env"
set +a
fi
export NODE_ENV="${NODE_ENV:-development}"
export NPM_CONFIG_MIN_RELEASE_AGE="${NPM_CONFIG_MIN_RELEASE_AGE:-7}"
exec guix time-machine -C "$channels" -- \
shell -m "$manifest" "$@"