planktoscope/nix/shell.nix

46 lines
858 B
Nix
Raw Normal View History

2022-11-11 18:27:11 +01:00
{self, ...}: system:
with self.pkgs.${system};
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
nodePackages.node-red
2022-11-11 18:27:11 +01:00
]
++ lib.optionals (pkgs.hostPlatform.system == "x86_64-linux") [
vscodium-fhs
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
'';
}