mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 15:47:39 +03:00
33 lines
856 B
Nix
33 lines
856 B
Nix
{
|
|
description = "CrossPoint Reader - ESP32 E-Paper Firmware";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
platformio
|
|
python3
|
|
git
|
|
];
|
|
|
|
shellHook = ''
|
|
echo "CrossPoint Reader development environment"
|
|
echo "Commands:"
|
|
echo " pio run - Build firmware"
|
|
echo " pio run -t upload - Build and flash to device"
|
|
echo " pio run -t clean - Clean build artifacts"
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|