Merge pull request 'clanCore: Fixed missing type null for clanIcon' (#634) from Qubasa-main into main
All checks were successful
assets1 / test (push) Successful in 22s
checks-impure / test (push) Successful in 1m8s
checks / test (push) Successful in 2m0s

This commit is contained in:
clan-bot 2023-12-08 18:33:58 +00:00
commit 9f4ab67fc2
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@
'';
};
clanIcon = lib.mkOption {
type = lib.types.path;
type = lib.types.nullOr lib.types.path;
description = ''
the location of the clan icon
'';

View File

@ -82,6 +82,7 @@ def nix_eval(flags: list[str]) -> list[str]:
return default_flags + flags
@deal.raises(ClanError)
def nix_metadata(flake: str) -> dict[str, Any]:
cmd = nix_command(["flake", "metadata", "--json", flake])
proc = subprocess.run(cmd, check=True, text=True, stdout=subprocess.PIPE)