rust-hypervisor-firmware: make assert lazy (#426900)

This commit is contained in:
Wolfgang Walther
2025-07-20 12:56:17 +00:00
committed by GitHub
@@ -12,14 +12,14 @@ let
in
assert lib.assertMsg (builtins.pathExists target) "Target spec not found";
let
cross = import ../../../.. {
system = stdenv.hostPlatform.system;
crossSystem = lib.systems.examples."${arch}-embedded" // {
rust.rustcTarget = "${arch}-unknown-none";
rust.platform = lib.importJSON target;
rust.platform =
assert lib.assertMsg (builtins.pathExists target) "Target spec not found";
lib.importJSON target;
};
};