mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 03:19:42 +01:00
fix toshiba/swanky evaluation (#167)
This commit is contained in:
parent
75a850cb3e
commit
4b129a0f71
1 changed files with 7 additions and 2 deletions
|
@ -35,10 +35,10 @@ def build_profile(profile: str) -> Tuple[str, subprocess.CompletedProcess]:
|
||||||
cmd = [
|
cmd = [
|
||||||
"nix",
|
"nix",
|
||||||
"build",
|
"build",
|
||||||
"-f", "build-profile.nix",
|
"-f",
|
||||||
|
"build-profile.nix",
|
||||||
"-I",
|
"-I",
|
||||||
f"nixos-hardware={ROOT}",
|
f"nixos-hardware={ROOT}",
|
||||||
"--dry-run",
|
|
||||||
"--show-trace",
|
"--show-trace",
|
||||||
"--system",
|
"--system",
|
||||||
system,
|
system,
|
||||||
|
@ -46,6 +46,11 @@ def build_profile(profile: str) -> Tuple[str, subprocess.CompletedProcess]:
|
||||||
"profile",
|
"profile",
|
||||||
profile,
|
profile,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# uses import from derivation
|
||||||
|
if profile != "<nixos-hardware/toshiba/swanky>":
|
||||||
|
cmd += ["--dry-run"]
|
||||||
|
print("$ " + " ".join(cmd))
|
||||||
res = subprocess.run(
|
res = subprocess.run(
|
||||||
cmd, cwd=TEST_ROOT, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True,
|
cmd, cwd=TEST_ROOT, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue