2023-01-25 12:21:02 +01:00
|
|
|
{self, ...}: system:
|
|
|
|
with self.pkgs.${system};
|
|
|
|
mkShell {
|
|
|
|
name = "iot-platform";
|
|
|
|
nativeBuildInputs =
|
|
|
|
[
|
|
|
|
# Development
|
|
|
|
editorconfig-checker
|
2023-02-07 16:55:21 +01:00
|
|
|
esptool
|
|
|
|
micropython
|
|
|
|
nodePackages.node-red
|
|
|
|
openscad
|
2023-01-25 12:21:02 +01:00
|
|
|
pre-commit
|
|
|
|
python310Full
|
2023-02-07 16:55:21 +01:00
|
|
|
python310Packages.mkdocs
|
|
|
|
python310Packages.mkdocs-material
|
|
|
|
python310Packages.mkdocs-material-extensions
|
2023-01-25 12:21:02 +01:00
|
|
|
yaml-language-server
|
|
|
|
]
|
|
|
|
++ lib.optionals (pkgs.hostPlatform.system == "x86_64-linux") [
|
|
|
|
vscodium-fhs
|
|
|
|
freecad
|
|
|
|
]
|
|
|
|
++ [
|
|
|
|
# Linter
|
|
|
|
git
|
|
|
|
yamllint
|
|
|
|
|
|
|
|
# Nix
|
|
|
|
alejandra
|
|
|
|
nix
|
|
|
|
nix-linter
|
|
|
|
rnix-lsp
|
|
|
|
|
|
|
|
# Service
|
|
|
|
mosquitto
|
|
|
|
|
|
|
|
# Misc
|
|
|
|
reuse
|
|
|
|
];
|
|
|
|
shellHook = ''
|
|
|
|
${self.checks.${system}.pre-commit-check.shellHook}
|
|
|
|
'';
|
|
|
|
}
|