shell: include treefmt wrapper

This commit is contained in:
Arthur Noel 2023-11-30 16:45:20 +00:00
parent a45fa0648d
commit b1231eafb1
2 changed files with 5 additions and 3 deletions

View File

@ -28,7 +28,9 @@
nixVersion = "unstable";
};
};
devShells.default = pkgs.callPackage ./shell.nix { };
devShells.default = pkgs.callPackage ./shell.nix {
packages = [ config.treefmt.build.wrapper ];
};
apps.test-runner = {
type = "app";
program = "${config.packages.test-runner}";

View File

@ -1,8 +1,8 @@
{ pkgs ? import <nixpkgs> { } }:
{ pkgs ? import <nixpkgs> { }, packages ? [ ] }:
with pkgs;
mkShell {
nativeBuildInputs = [
packages = packages ++ [
python3.pkgs.pytest
python3.pkgs.mypy
ruff