flake: add a devShell
that includes the formatter
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{ pkgs, mkShell }:
|
||||||
|
let
|
||||||
|
formatter = pkgs.callPackage ./formatter.nix { };
|
||||||
|
in
|
||||||
|
mkShell {
|
||||||
|
name = "devShell";
|
||||||
|
packages = [
|
||||||
|
pkgs.coreutils
|
||||||
|
formatter
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{ pkgs }:
|
||||||
|
pkgs.treefmt.withConfig {
|
||||||
|
runtimeInputs = with pkgs; [
|
||||||
|
nixfmt
|
||||||
|
deadnix
|
||||||
|
keep-sorted
|
||||||
|
nixf-diagnose
|
||||||
|
];
|
||||||
|
settings = pkgs.lib.importTOML ../treefmt.toml;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user