Files
self 1cbcb5ea55 chore: use conventional Guix manifest
Rename the repo Guix development manifest to manifest.scm and update the wrapper and direnv integration.
2026-06-01 19:38:21 +02:00

27 lines
599 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
exec guix time-machine -C "$channels" -- \
shell -m "$manifest" "$@"