Inventory/schemas: move all schemas to legacyPackages

This commit is contained in:
Johannes Kirschbauer
2024-10-09 12:45:09 +02:00
parent 0a5223a1f0
commit 15974d92fe
6 changed files with 32 additions and 23 deletions

View File

@@ -25,20 +25,6 @@ in
];
};
packages.inventory-schema-abstract = pkgs.stdenv.mkDerivation {
name = "inventory-schema";
buildInputs = [ pkgs.cue ];
src = ./.;
buildPhase = ''
export SCHEMA=${builtins.toFile "inventory-schema.json" (builtins.toJSON self'.legacyPackages.schemas.inventory)}
cp $SCHEMA schema.json
cue import -f -p compose -l '#Root:' schema.json
mkdir $out
cp schema.cue $out
cp schema.json $out
'';
};
legacyPackages.schemas = (
import ./schemas {
inherit