feat(nix): integrate all checks into nix flake check

This commit is contained in:
Ananth Venkatesh 2025-02-08 20:42:52 -05:00
parent 929360cd30
commit 03fa4b823c
Signed by: ananthv
GPG key ID: 4BB578E748CFE4FF
8 changed files with 142 additions and 120 deletions

View file

@ -1 +1 @@
/nix/store/gnnangzf73g2b665rmhwblqydx18hjlm-pre-commit-config.json /nix/store/i4wcn83p1273vgv0nggpdbjqppq33aj7-pre-commit-config.json

View file

@ -20,4 +20,3 @@ Ke 0.0 0.0 0.0
Ni 1.0 Ni 1.0
d 1 d 1
illum 1 illum 1

View file

@ -57385,4 +57385,3 @@ f 12387/12387/12363 12389/12389/12365 12388/12388/12364
f 11650/11650/11632 12389/12389/12365 12387/12387/12363 f 11650/11650/11632 12389/12389/12365 12387/12387/12363
f 12388/12388/12364 12389/12389/12365 12104/12104/12086 f 12388/12388/12364 12389/12389/12365 12104/12104/12086
# Vertices: 12389, normals: 12365, texture coordinates: 12389, faces: 20237 # Vertices: 12389, normals: 12365, texture coordinates: 12389, faces: 20237

View file

@ -1,19 +1,14 @@
{ {
"type": "application",
"source-directories": [
"src"
],
"elm-version": "0.19.1",
"dependencies": { "dependencies": {
"direct": { "direct": {
"andrewMacmurray/elm-simple-animation": "2.3.2", "andrewMacmurray/elm-simple-animation": "2.3.2",
"avh4/elm-color": "1.0.0", "avh4/elm-color": "1.0.0",
"elm-explorations/webgl": "1.1.3",
"elm/browser": "1.0.2", "elm/browser": "1.0.2",
"elm/core": "1.0.5", "elm/core": "1.0.5",
"elm/html": "1.0.0", "elm/html": "1.0.0",
"elm/http": "2.0.0", "elm/http": "2.0.0",
"elm/time": "1.0.0", "elm/time": "1.0.0",
"elm-explorations/webgl": "1.1.3",
"ianmackenzie/elm-3d-camera": "3.1.0", "ianmackenzie/elm-3d-camera": "3.1.0",
"ianmackenzie/elm-3d-scene": "1.0.2", "ianmackenzie/elm-3d-scene": "1.0.2",
"ianmackenzie/elm-geometry": "3.11.0", "ianmackenzie/elm-geometry": "3.11.0",
@ -23,13 +18,13 @@
"w0rm/elm-obj-file": "1.2.1" "w0rm/elm-obj-file": "1.2.1"
}, },
"indirect": { "indirect": {
"elm-explorations/linear-algebra": "1.0.3",
"elm/bytes": "1.0.8", "elm/bytes": "1.0.8",
"elm/file": "1.0.5", "elm/file": "1.0.5",
"elm/json": "1.1.3", "elm/json": "1.1.3",
"elm/random": "1.0.0", "elm/random": "1.0.0",
"elm/url": "1.0.0", "elm/url": "1.0.0",
"elm/virtual-dom": "1.0.3", "elm/virtual-dom": "1.0.3",
"elm-explorations/linear-algebra": "1.0.3",
"ianmackenzie/elm-1d-parameter": "1.0.1", "ianmackenzie/elm-1d-parameter": "1.0.1",
"ianmackenzie/elm-float-extra": "1.1.0", "ianmackenzie/elm-float-extra": "1.1.0",
"ianmackenzie/elm-geometry-linear-algebra-interop": "2.0.2", "ianmackenzie/elm-geometry-linear-algebra-interop": "2.0.2",
@ -37,8 +32,13 @@
"ianmackenzie/elm-units-interval": "3.2.0" "ianmackenzie/elm-units-interval": "3.2.0"
} }
}, },
"elm-version": "0.19.1",
"source-directories": [
"src"
],
"test-dependencies": { "test-dependencies": {
"direct": {}, "direct": {},
"indirect": {} "indirect": {}
} },
"type": "application"
} }

View file

@ -88,11 +88,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1737854574, "lastModified": 1738459463,
"narHash": "sha256-GIh8IAIjJ3BkqSKifdXcnrkJgY4diipcMZ1itmwiFyw=", "narHash": "sha256-QBYK7boMjAAXFySEK9jEpQAhhe5vXkC9UI2fvQipadk=",
"owner": "jeslie0", "owner": "jeslie0",
"repo": "mkElmDerivation", "repo": "mkElmDerivation",
"rev": "88b3923af364826b39428aff3431857a2b9d8699", "rev": "e86ad254296f6861dedfc3cc303dd3b530535fd6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -119,11 +119,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1738142207, "lastModified": 1739020877,
"narHash": "sha256-NGqpVVxNAHwIicXpgaVqJEJWeyqzoQJ9oc8lnK9+WC4=", "narHash": "sha256-mIvECo/NNdJJ/bXjNqIh8yeoSjVLAuDuTUzAo7dzs8Y=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9d3ae807ebd2981d593cddd0080856873139aa40", "rev": "a79cfe0ebd24952b580b1cf08cd906354996d547",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -32,8 +32,6 @@
buildInputs = self.checks.${system}.pre-commit-check.enabledPackages ++ [ buildInputs = self.checks.${system}.pre-commit-check.enabledPackages ++ [
elmPackages.elm elmPackages.elm
elmPackages.elm-test
elmPackages.elm-format
elmPackages.elm-review elmPackages.elm-review
entr entr
]; ];
@ -61,8 +59,32 @@
hooks = { hooks = {
nixfmt-rfc-style.enable = true; nixfmt-rfc-style.enable = true;
elm-format.enable = true; elm-format.enable = true;
# elm-review.enable = true; check-yaml.enable = true;
# elm-test.enable = true; yamlfmt.enable = true;
yamllint.enable = true;
check-json.enable = true;
pretty-format-json.enable = true;
deadnix.enable = true;
flake-checker.enable = true;
nil.enable = true;
statix.enable = true;
markdownlint.enable = true;
mdsh.enable = true;
typos.enable = true;
check-merge-conflicts.enable = true;
commitizen.enable = true;
forbid-new-submodules.enable = true;
check-case-conflicts.enable = true;
check-executables-have-shebangs.enable = true;
check-shebang-scripts-are-executable.enable = true;
check-symlinks.enable = true;
check-vcs-permalinks.enable = true;
end-of-file-fixer.enable = true;
mixed-line-endings.enable = true;
tagref.enable = true;
trim-trailing-whitespace.enable = true;
trufflehog.enable = true;
detect-private-keys.enable = true;
}; };
}; };
}; };

View file

@ -1,9 +1,4 @@
{ {
"type": "application",
"source-directories": [
"src"
],
"elm-version": "0.19.1",
"dependencies": { "dependencies": {
"direct": { "direct": {
"elm/core": "1.0.5", "elm/core": "1.0.5",
@ -19,6 +14,7 @@
"stil4m/elm-syntax": "7.3.8" "stil4m/elm-syntax": "7.3.8"
}, },
"indirect": { "indirect": {
"elm-explorations/test": "2.2.0",
"elm/bytes": "1.0.8", "elm/bytes": "1.0.8",
"elm/html": "1.0.0", "elm/html": "1.0.0",
"elm/parser": "1.1.0", "elm/parser": "1.1.0",
@ -26,16 +22,20 @@
"elm/regex": "1.0.0", "elm/regex": "1.0.0",
"elm/time": "1.0.0", "elm/time": "1.0.0",
"elm/virtual-dom": "1.0.3", "elm/virtual-dom": "1.0.3",
"elm-explorations/test": "2.2.0",
"pzp1997/assoc-list": "1.0.0", "pzp1997/assoc-list": "1.0.0",
"rtfeldman/elm-hex": "1.0.0", "rtfeldman/elm-hex": "1.0.0",
"stil4m/structured-writer": "1.0.3" "stil4m/structured-writer": "1.0.3"
} }
}, },
"elm-version": "0.19.1",
"source-directories": [
"src"
],
"test-dependencies": { "test-dependencies": {
"direct": { "direct": {
"elm-explorations/test": "2.2.0" "elm-explorations/test": "2.2.0"
}, },
"indirect": {} "indirect": {}
} },
"type": "application"
} }

View file

@ -1 +1,3 @@
#!usr/bin/env -S nix develop --command bash
find src/ | entr -r elm make src/Main.elm --output compiled/Main.js find src/ | entr -r elm make src/Main.elm --output compiled/Main.js