From 6534a3aeaade8137ed189b684d3d1ca1a9af6977 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 29 Mar 2023 12:06:21 +0300 Subject: [PATCH] rust-hypervisor-firmware: check if path exists --- .../virtualization/rust-hypervisor-firmware/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/virtualization/rust-hypervisor-firmware/default.nix b/pkgs/applications/virtualization/rust-hypervisor-firmware/default.nix index a4ab7c0805c8..42cc3ab07a88 100644 --- a/pkgs/applications/virtualization/rust-hypervisor-firmware/default.nix +++ b/pkgs/applications/virtualization/rust-hypervisor-firmware/default.nix @@ -11,6 +11,11 @@ let target = ./. + "/${arch}-unknown-none.json"; +in + +assert lib.assertMsg (builtins.pathExists target) "Target spec not found"; + +let cross = import ../../../.. { system = hostPlatform.system; crossSystem = lib.systems.examples."${arch}-embedded" // {