mirror of
https://gitlab.com/TECHNOFAB/nixlets.git
synced 2026-02-02 11:15:08 +01:00
feat: switch from flake-parts & devenv to rensa + add nixtest
This commit is contained in:
parent
6af83809f7
commit
012a3afb2d
18 changed files with 553 additions and 611 deletions
29
nix/repo/devShells.nix
Normal file
29
nix/repo/devShells.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
cell,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (inputs) pkgs devshell treefmt;
|
||||
inherit (cell) soonix;
|
||||
in {
|
||||
default = devshell.mkShell {
|
||||
imports = [soonix.devshellModule];
|
||||
packages = [
|
||||
pkgs.nil
|
||||
(treefmt.mkWrapper pkgs {
|
||||
programs = {
|
||||
alejandra.enable = true;
|
||||
deadnix.enable = true;
|
||||
statix.enable = true;
|
||||
mdformat.enable = true;
|
||||
};
|
||||
settings.formatter.mdformat.command = let
|
||||
pkg = pkgs.python3.withPackages (p: [
|
||||
p.mdformat
|
||||
p.mdformat-mkdocs
|
||||
]);
|
||||
in "${pkg}/bin/mdformat";
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue