summaryrefslogtreecommitdiff
path: root/nix/overlay
diff options
context:
space:
mode:
authorยท๐‘‘๐‘ด๐‘•๐‘‘๐‘ฉ๐‘ค2025-12-23 06:22:23 +0000
committerยท๐‘‘๐‘ด๐‘•๐‘‘๐‘ฉ๐‘ค2025-12-23 06:22:23 +0000
commit88e1e2f3c22fd24f5b3a47033526c627c8667464 (patch)
treee9b17868c2ae4e0e868485075aa409e52ab0ba50 /nix/overlay
parent8095f07850ecba1265b7a77154b2d316a88a4e99 (diff)
downloadnixtaml-88e1e2f3c22fd24f5b3a47033526c627c8667464.tar
nixtaml-88e1e2f3c22fd24f5b3a47033526c627c8667464.tar.gz
nixtaml-88e1e2f3c22fd24f5b3a47033526c627c8667464.tar.bz2
nixtaml-88e1e2f3c22fd24f5b3a47033526c627c8667464.tar.lz
nixtaml-88e1e2f3c22fd24f5b3a47033526c627c8667464.tar.xz
nixtaml-88e1e2f3c22fd24f5b3a47033526c627c8667464.tar.zst
nixtaml-88e1e2f3c22fd24f5b3a47033526c627c8667464.zip
nix/check: onset
Diffstat (limited to 'nix/overlay')
-rw-r--r--nix/overlay/check.nix27
1 files changed, 6 insertions, 21 deletions
diff --git a/nix/overlay/check.nix b/nix/overlay/check.nix
index 8a6ec2b..98f60c0 100644
--- a/nix/overlay/check.nix
+++ b/nix/overlay/check.nix
@@ -5,27 +5,12 @@
final: prev: {
nixtamal = prev.nixtamal.overrideScope (
final': prev': {
- check = (prev'.check or { }) // {
- EditorConfig =
- final.runCommand "check-EditorConfig"
- {
- src =
- let
- fs = final.lib.fileset;
- in
- (fs.toSource {
- root = ../..;
- fileset = fs.unions [
- (fs.fileFilter (file: file.name == ".editorconfig") ../..)
- (fs.fromSource prev'.nixtamal.src)
- ../../nix
- ];
- });
- }
- ''
- cd $src
- ${final.lib.getExe final.editorconfig-checker} | tee $out
- '';
+ check = {
+ format = {
+ EditorConfig = final'.callPackage ../check/editorconfig.nix { };
+
+ nixfmt = final'.callPackage ../check/nixfmt.nix { };
+ };
};
}
);