Skip to content

Commit

Permalink
feat(flake-module)!: a flake check for each devshell
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Jan 8, 2025
1 parent f7795ed commit 597f687
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ in
);
default = { };
};
config.devShells = lib.mapAttrs (_name: devshell: devshell.devshell.shell) config.devshells;
config = {
devShells = lib.mapAttrs (_name: devshell: devshell.devshell.shell) config.devshells;
checks = lib.mapAttrs' (
name: devshell: lib.nameValuePair "devshells/${name}" devshell.devshell.shell
) config.devshells;
};
}
);
};
Expand Down

0 comments on commit 597f687

Please sign in to comment.