iot-backend/nix/shell.nix

38 lines
719 B
Nix
Raw Normal View History

2023-01-25 12:21:02 +01:00
{self, ...}: system:
with self.pkgs.${system};
mkShell {
name = "Smart Energy Monitor";
2023-01-25 12:21:02 +01:00
nativeBuildInputs =
[
# Development
editorconfig-checker
pre-commit
yaml-language-server
]
++ lib.optionals (pkgs.hostPlatform.system == "x86_64-linux") [
vscodium-fhs
vscode-extensions.marp-team.marp-vscode
2023-01-25 12:21:02 +01:00
]
++ [
# Linter
git
yamllint
# Nix
alejandra
nixUnstable
nil
2023-01-25 12:21:02 +01:00
# Service
mosquitto
# Misc
reuse
2023-09-28 11:13:48 +02:00
marp-cli
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
}