webui: implement /api/machines/{name}/schema

This commit is contained in:
DavHau
2023-08-25 21:26:30 +02:00
parent 6d4d455626
commit fb76ad45e8
10 changed files with 121 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ let
]
);
checkScript = pkgs.writeScriptBin "check" ''
nix build .#checks.${pkgs.system}.{treefmt,clan-mypy,clan-pytest} -L "$@"
nix build .#checks.${pkgs.system}.{treefmt,clan-pytest} -L "$@"
'';
in
pkgs.mkShell {
@@ -18,8 +18,10 @@ pkgs.mkShell {
self.packages.${pkgs.system}.nix-unit
pythonWithDeps
];
# sets up an editable install and add enty points to $PATH
CLAN_FLAKE = self;
# This is required for the python tests, where some nix libs depend on nixpkgs
CLAN_NIXPKGS = pkgs.path;
# sets up an editable install and add enty points to $PATH
# This provides dummy options for testing clan config and prevents it from
# evaluating the flake .#
CLAN_OPTIONS_FILE = ./clan_cli/config/jsonschema/options.json;