diff options
| author | ยท๐๐ด๐๐๐ฉ๐ค | 2025-12-23 06:22:23 +0000 |
|---|---|---|
| committer | ยท๐๐ด๐๐๐ฉ๐ค | 2025-12-23 06:22:23 +0000 |
| commit | 88e1e2f3c22fd24f5b3a47033526c627c8667464 (patch) | |
| tree | e9b17868c2ae4e0e868485075aa409e52ab0ba50 /nix/check/editorconfig.nix | |
| 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/check/editorconfig.nix')
| -rw-r--r-- | nix/check/editorconfig.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/nix/check/editorconfig.nix b/nix/check/editorconfig.nix new file mode 100644 index 0000000..526ed5b --- /dev/null +++ b/nix/check/editorconfig.nix @@ -0,0 +1,38 @@ +#โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ +# SPDX-FileCopyrightText: 2025 toastal <https://toast.al/contact/> โ +# SPDX-License-Identifier: LGPL-2.1-or-later โ +#โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ +{ + lib, + runDashCommand, + editorconfig-checker, + nixtamal, +}: + +runDashCommand + { + name = "check-EditorConfig"; + runtimeInputs = [ + editorconfig-checker + ]; + env.src = + let + fs = lib.fileset; + in + (fs.toSource { + root = ../..; + fileset = fs.unions [ + (fs.fileFilter (file: file.name == ".editorconfig") ../..) + (fs.fromSource nixtamal.src) + ../../nix + ]; + }); + } + /* sh */ '' + if [ -z "$src" ]; then + echo "Missing \$src" >&2 + exit 1 + fi + cd "$src" + editorconfig-checker | tee "$out" + '' |
