planktoscope/nix/shell.nix

44 lines
814 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
]
++ 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
'';
}