diff options
| author | ยท๐๐ด๐๐๐ฉ๐ค | 2025-12-23 06:22:23 +0000 |
|---|---|---|
| committer | ยท๐๐ด๐๐๐ฉ๐ค | 2025-12-23 06:22:23 +0000 |
| commit | 88e1e2f3c22fd24f5b3a47033526c627c8667464 (patch) | |
| tree | e9b17868c2ae4e0e868485075aa409e52ab0ba50 /nix/overlay | |
| parent | 8095f07850ecba1265b7a77154b2d316a88a4e99 (diff) | |
| download | nixtaml-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.nix | 27 |
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 { }; + }; }; } ); |
