flake: add a devShell

that includes the formatter
This commit is contained in:
teto
2026-02-26 20:44:57 -06:00
committed by Austin Horstman
parent 27ba84b1f0
commit 58330fd08d
3 changed files with 26 additions and 12 deletions
+5 -12
View File
@@ -157,18 +157,7 @@
lib.mapAttrs' renameTestPkg tests; lib.mapAttrs' renameTestPkg tests;
in in
{ {
formatter = forAllPkgs ( formatter = forAllPkgs (pkgs: pkgs.callPackage ./home-manager/formatter.nix { });
pkgs:
pkgs.treefmt.withConfig {
runtimeInputs = with pkgs; [
nixfmt
deadnix
keep-sorted
nixf-diagnose
];
settings = pkgs.lib.importTOML ./treefmt.toml;
}
);
# TODO: increase buildbot testing scope # TODO: increase buildbot testing scope
buildbot = forCI ( buildbot = forCI (
@@ -214,6 +203,10 @@
} }
); );
devShells = forAllPkgs (pkgs: {
default = pkgs.callPackage ./home-manager/devShell.nix { };
});
legacyPackages = forAllPkgs ( legacyPackages = forAllPkgs (
pkgs: pkgs:
let let
+11
View File
@@ -0,0 +1,11 @@
{ pkgs, mkShell }:
let
formatter = pkgs.callPackage ./formatter.nix { };
in
mkShell {
name = "devShell";
packages = [
pkgs.coreutils
formatter
];
}
+10
View File
@@ -0,0 +1,10 @@
{ pkgs }:
pkgs.treefmt.withConfig {
runtimeInputs = with pkgs; [
nixfmt
deadnix
keep-sorted
nixf-diagnose
];
settings = pkgs.lib.importTOML ../treefmt.toml;
}