smart-energy-monitor/nix/shell.nix

49 lines
965 B
Nix
Raw Normal View History

2023-01-25 12:21:02 +01:00
{self, ...}: system:
with self.pkgs.${system};
mkShell {
name = "FabNet";
2023-01-25 12:21:02 +01:00
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
deploy-rs
2023-01-25 12:21:02 +01:00
alejandra
nixUnstable
2023-01-25 12:21:02 +01:00
rnix-lsp
# Service
mosquitto
# Misc
reuse
zstd
wget
raspberrypi-eeprom
2023-01-25 12:21:02 +01:00
];
shellHook = ''
${self.checks.${system}.pre-commit-check.shellHook}
'';
allowUnsupportedSystem = true;
2023-01-25 12:21:02 +01:00
}