{ pkgs, ... }: { packages = [ pkgs.git pkgs.pkg-config # libsystemd.pc lives in the .dev output; the pkg-config setup hook finds # it when the package is in `packages`. pkgs.systemd # Local OTLP collector for the telemetry workstream (G7). pkgs.opentelemetry-collector-contrib # Test runner (dev/test.nu). pkgs.nushell ]; languages.rust.enable = true; # Local OTLP collector with a debug exporter: `devenv up`. processes.otelcol.exec = "otelcol-contrib --config dev/otelcol.yaml"; scripts.build.exec = ''cargo build "$@"''; scripts.run.exec = ''cargo run -- "$@"''; scripts.smoke.exec = "cargo test --test binary_smoke -- --nocapture"; scripts.token.exec = ''cargo run -- token "$@"''; # `test unit`, `test integration`, `test lint`, `test vm`, `test all`, `test ci`. scripts.test.exec = ''nu dev/test.nu "$@"''; enterShell = '' export CLAUDE_CONFIG_DIR="$(pwd)/.claude-account" # Completion for the `test` runner in the shell that sourced this hook. # Nushell loads the script itself and completes natively; zsh and bash get # a generated script from the same command table. if command -v nu >/dev/null 2>&1; then if [ -n "''${ZSH_VERSION:-}" ]; then source <(nu dev/test.nu completions zsh) elif [ -n "''${BASH_VERSION:-}" ]; then source <(nu dev/test.nu completions bash) fi echo "test runner: 'test --help'. Nushell: run 'use dev/test.nu *' for completion." fi ''; }