Added gcroot for clan Icon and VM

This commit is contained in:
Qubasa
2023-12-31 00:49:57 +01:00
parent 5c08242b7e
commit cb933787ff
5 changed files with 97 additions and 75 deletions

View File

@@ -25,20 +25,32 @@ def nix_flake_show(flake_url: str | Path) -> list[str]:
)
def nix_build(
flags: list[str],
) -> list[str]:
return (
nix_command(
[
"build",
"--no-link",
"--print-out-paths",
"--no-write-lock-file",
]
def nix_build(flags: list[str], gcroot: Path | None = None) -> list[str]:
if gcroot is not None:
return (
nix_command(
[
"build",
"--out-link",
str(gcroot),
"--print-out-paths",
"--no-write-lock-file",
]
)
+ flags
)
else:
return (
nix_command(
[
"build",
"--no-link",
"--print-out-paths",
"--no-write-lock-file",
]
)
+ flags
)
+ flags
)
def nix_config() -> dict[str, Any]: