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"; nixVersion = "unstable";
}; };
}; };
devShells.default = pkgs.callPackage ./shell.nix { }; devShells.default = pkgs.callPackage ./shell.nix {
packages = [ config.treefmt.build.wrapper ];
};
apps.test-runner = { apps.test-runner = {
type = "app"; type = "app";
program = "${config.packages.test-runner}"; program = "${config.packages.test-runner}";

View file

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