mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 09:38:07 +08:00
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:
19
tests/run-tests.nix
Normal file
19
tests/run-tests.nix
Normal 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
|
||||
''
|
||||
Reference in New Issue
Block a user