mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-25 02:11:02 +01: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:
parent
2379bc4099
commit
4bafcc2454
10 changed files with 491 additions and 190 deletions
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
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue