Templates: fix invalid mock flake
This commit is contained in:
@@ -832,7 +832,8 @@ nix repl --expr 'rec {{
|
||||
""")
|
||||
# fmt: on
|
||||
elif len(selectors) == 1:
|
||||
log.debug(f"""
|
||||
log.debug(
|
||||
f"""
|
||||
selecting: {selectors[0]}
|
||||
to debug run:
|
||||
nix repl --expr 'rec {{
|
||||
@@ -840,11 +841,13 @@ nix repl --expr 'rec {{
|
||||
selectLib = (builtins.getFlake "path:{select_source()}?narHash={select_hash}").lib;
|
||||
query = selectLib.select '"''{selectors[0]}''"' flake;
|
||||
}}'
|
||||
""")
|
||||
"""
|
||||
)
|
||||
|
||||
build_output = Path(
|
||||
run(
|
||||
nix_build(["--expr", nix_code, *nix_options]), RunOpts(log=Log.NONE, trace=False),
|
||||
nix_build(["--expr", nix_code, *nix_options]),
|
||||
RunOpts(log=Log.NONE, trace=False),
|
||||
).stdout.strip()
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
outputs =
|
||||
{ ... }:
|
||||
{
|
||||
clan.templates = {
|
||||
let
|
||||
templates = {
|
||||
disko = {
|
||||
single-disk = {
|
||||
description = "A simple ext4 disk with a single partition";
|
||||
@@ -41,5 +41,11 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
rec {
|
||||
inherit (clan) clanInternals;
|
||||
|
||||
clan.clanInternals.templates = templates;
|
||||
clan.templates = templates;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user