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
|
|
|
|
]
|
|
|
|
++ lib.optionals (pkgs.hostPlatform.system == "x86_64-linux") [
|
|
|
|
vscodium-fhs
|
|
|
|
]
|
|
|
|
++ [
|
|
|
|
# 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
|
|
|
}
|