37 lines
827 B
Nix
37 lines
827 B
Nix
{ pkgs, lib, config, inputs, ... }:
|
|
|
|
{
|
|
# https://devenv.sh/basics/
|
|
env.GREET = "devenv";
|
|
packages = [
|
|
pkgs.platformio
|
|
];
|
|
|
|
scripts.compile-commands.exec = "pio run --target compiledb";
|
|
scripts.build.exec = "pio run";
|
|
scripts.upload.exec = "pio run --target upload";
|
|
scripts.monitor.exec = "pio device monitor";
|
|
|
|
enterShell = ''
|
|
export PLATFORMIO_CORE_DIR=$PWD/.platformio
|
|
'';
|
|
|
|
# https://devenv.sh/tests/
|
|
enterTest = ''
|
|
'';
|
|
|
|
# https://devenv.sh/services/
|
|
# services.postgres.enable = true;
|
|
|
|
# https://devenv.sh/languages/
|
|
# languages.nix.enable = true;
|
|
|
|
# https://devenv.sh/pre-commit-hooks/
|
|
# pre-commit.hooks.shellcheck.enable = true;
|
|
|
|
# https://devenv.sh/processes/
|
|
# processes.ping.exec = "ping example.com";
|
|
|
|
# See full reference at https://devenv.sh/reference/options/
|
|
}
|