Merge pull request 'jsonschema: fix eval' (#353) from Mic92-main into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/353
This commit is contained in:
Mic92
2023-09-27 13:08:24 +00:00
3 changed files with 4 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ let
# throw error if option type is not supported # throw error if option type is not supported
notSupported = option: throw notSupported = option: throw
"option type '${option.type.description}' not supported by jsonschema converter"; "option type '${option.type.name}' ('${option.type.description}') not supported by jsonschema converter";
in in
rec { rec {
@@ -91,7 +91,7 @@ rec {
} }
# parse int # parse int
else if option.type.name == "int" else if (option.type.name == "int" || option.type.name == "positiveInt")
# return jsonschema property definition for int # return jsonschema property definition for int
then default // description // { then default // description // {
type = "integer"; type = "integer";

View File

@@ -8,7 +8,7 @@ from .dirs import nixpkgs_flake, nixpkgs_source
def nix_command(flags: list[str]) -> list[str]: def nix_command(flags: list[str]) -> list[str]:
return ["nix", "--experimental-features", "nix-command flakes"] + flags return ["nix", "--extra-experimental-features", "nix-command flakes"] + flags
def nix_build( def nix_build(
@@ -20,8 +20,6 @@ def nix_build(
"build", "build",
"--no-link", "--no-link",
"--print-out-paths", "--print-out-paths",
"--extra-experimental-features",
"nix-command flakes",
] ]
) )
+ flags + flags

View File

@@ -89,7 +89,7 @@ let
ln -s ${nixpkgs} $out/path ln -s ${nixpkgs} $out/path
nix flake lock $out \ nix flake lock $out \
--store ./. \ --store ./. \
--experimental-features 'nix-command flakes' \ --extra-experimental-features 'nix-command flakes' \
--override-input nixpkgs ${nixpkgs} --override-input nixpkgs ${nixpkgs}
''; '';
in in