Refactor tests to load flake inputs with flake-compat

This makes `nix fmt` just works and we no longer have to override flake
inputs.
This commit is contained in:
Jörg Thalheim
2025-08-17 11:20:09 +02:00
parent 2379bc4099
commit 4bafcc2454
10 changed files with 491 additions and 190 deletions

19
tests/run-tests.nix Normal file
View File

@@ -0,0 +1,19 @@
{
lib,
writeShellScriptBin,
bash,
python3,
nix-eval-jobs,
self,
}:
writeShellScriptBin "run-tests" ''
#!${bash}/bin/bash
export PATH=${
lib.makeBinPath [
nix-eval-jobs
nix-eval-jobs.nix
]
}
exec ${python3.interpreter} ${self}/tests/run.py
''