2022-11-11 18:27:11 +01:00
|
|
|
{self, ...}: system:
|
|
|
|
with self.pkgs.${system};
|
2022-10-31 17:26:02 +01:00
|
|
|
mkShell {
|
2022-11-11 18:27:11 +01:00
|
|
|
name = "planktoscope";
|
|
|
|
nativeBuildInputs =
|
|
|
|
[
|
|
|
|
# Development
|
|
|
|
editorconfig-checker
|
|
|
|
pre-commit
|
|
|
|
python-language-server
|
|
|
|
python37
|
|
|
|
python38
|
|
|
|
python39
|
|
|
|
python310Full
|
|
|
|
python311
|
|
|
|
yaml-language-server
|
2023-01-09 06:17:47 +01:00
|
|
|
nodePackages.node-red
|
2022-11-11 18:27:11 +01:00
|
|
|
]
|
|
|
|
++ lib.optionals (pkgs.hostPlatform.system == "x86_64-linux") [
|
|
|
|
vscodium-fhs
|
2023-01-09 06:17:47 +01:00
|
|
|
eagle
|
2022-11-11 18:27:11 +01:00
|
|
|
]
|
|
|
|
++ [
|
|
|
|
# Linter
|
|
|
|
git
|
|
|
|
yamllint
|
|
|
|
|
|
|
|
# Nix
|
|
|
|
alejandra
|
|
|
|
nix
|
|
|
|
nix-linter
|
|
|
|
rnix-lsp
|
|
|
|
|
|
|
|
# Service
|
|
|
|
mosquitto
|
|
|
|
|
|
|
|
# Misc
|
|
|
|
reuse
|
|
|
|
];
|
|
|
|
shellHook = ''
|
|
|
|
${self.checks.${system}.pre-commit-check.shellHook}
|
|
|
|
pip install --upgrade pip hatch
|
|
|
|
hatch env create dev
|
|
|
|
'';
|
2022-10-31 17:26:02 +01:00
|
|
|
}
|