From 9a9d9b5c3ea13b212d7d297c1243f4836583d164 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Sat, 14 Nov 2020 19:46:19 -0700 Subject: Remove deprecated `checkSchema` --- flake.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 76afb54..402d63f 100644 --- a/flake.nix +++ b/flake.nix @@ -63,11 +63,7 @@ ]; }; - checkSchema = builtins.trace "WARNING: deploy-rs#checkSchema is deprecated" checks.schema; - - deployChecks = deploy: builtins.mapAttrs (_: check: check deploy) checks; - - checks = { + deployChecks = deploy: builtins.mapAttrs (_: check: check deploy) { schema = deploy: pkgs.runCommandNoCC "jsonschema-deploy-system" { } '' ${pkgs.python3.pkgs.jsonschema}/bin/jsonschema -i ${pkgs.writeText "deploy.json" (builtins.toJSON deploy)} ${./interface.json} && touch $out ''; -- cgit v1.2.3