chore: move autofmt into packages/autofmt
This commit is contained in:
parent
12e7bbc802
commit
6c74c73de2
3 changed files with 4 additions and 3 deletions
|
@ -69,7 +69,7 @@
|
||||||
|
|
||||||
# custom packages
|
# custom packages
|
||||||
(_: pkgs: {
|
(_: pkgs: {
|
||||||
autofmt = pkgs.callPackage ./packages/autofmt.nix { };
|
autofmt = pkgs.callPackage ./packages/autofmt { };
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
// autofmt v1 - https://paperclover.dev/nix/config/src/branch/main/files/autofmt.js
|
// autofmt v1 by paper clover
|
||||||
|
// https://paperclover.dev/nix/config/src/branch/main/packages/autofmt/autofmt.js
|
||||||
//
|
//
|
||||||
// Different codebases use different formatters. Autofmt looks for project
|
// Different codebases use different formatters. Autofmt looks for project
|
||||||
// configuration to pick the correct formatter, allowing an editor to simply
|
// configuration to pick the correct formatter, allowing an editor to simply
|
|
@ -10,5 +10,5 @@ pkgs.writeShellApplication {
|
||||||
zig
|
zig
|
||||||
clang-tools
|
clang-tools
|
||||||
];
|
];
|
||||||
text = ''exec deno run -A ${../files/autofmt.js} "$@"'';
|
text = ''exec deno run -A ${./autofmt.js} "$@"'';
|
||||||
}
|
}
|
Loading…
Reference in a new issue