9e58e72bf6
clang-format had no config here, so adopting the submodule's puts both repos on the same pointer alignment. .editorconfig is what lua-language-server reads on save, which is why the Lua tree had drifted between tabs and two widths.
41 lines
937 B
Nix
41 lines
937 B
Nix
{
|
|
description = "slate32 - a Lua app platform for a cheap ESP32 touchscreen";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs =
|
|
{ nixpkgs, ... }:
|
|
let
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
in
|
|
{
|
|
devShells = forAllSystems (
|
|
system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
platformio-core
|
|
gnumake
|
|
# Host tests run on the same Lua version the firmware vendors.
|
|
lua5_4
|
|
gcc
|
|
clang-tools # clang-format for `make format`
|
|
];
|
|
shellHook = ''
|
|
export PLATFORMIO_CORE_DIR="$PWD/.cache/platformio"
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|