Files
skyg-linux-tracker/devenv.nix
T

28 lines
775 B
Nix

{ 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
];
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 "$@"'';
enterShell = ''
export CLAUDE_CONFIG_DIR="$(pwd)/.claude-account"
'';
}