build: dendritic flake, devShell and crate skeleton
This commit is contained in:
1 parent
fbdc8da28f
commit
d69049d97c
10 files changed
+1587
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{ ... }:
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
formatter = pkgs.writeShellApplication {
|
||||
name = "nixfmt-tree";
|
||||
runtimeInputs = [
|
||||
pkgs.nixfmt
|
||||
pkgs.fd
|
||||
pkgs.findutils
|
||||
];
|
||||
text = ''
|
||||
if [ "$#" -eq 0 ]; then
|
||||
set -- .
|
||||
fi
|
||||
fd --type f --extension nix --hidden --exclude .jj . "$@" \
|
||||
| xargs -r nixfmt
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user