mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
shell: include treefmt wrapper
This commit is contained in:
parent
a45fa0648d
commit
b1231eafb1
2 changed files with 5 additions and 3 deletions
|
|
@ -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}";
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue