mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-13 04:51:00 +08:00
* test(tmachine): add Docker VM scenario Signed-off-by: Simon Scatton <sscatton@nvidia.com> * test(tmachine): add portable container scenarios Signed-off-by: Simon Scatton <sscatton@nvidia.com> * chore(tmachine): isolate downloaded Ansible roles Signed-off-by: Simon Scatton <sscatton@nvidia.com> * test(tmachine): increase VM resources Signed-off-by: Simon Scatton <sscatton@nvidia.com> * test(tmachine): improve artifact builds and diagnostics Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(nix): pin tmachine runtime on macOS Signed-off-by: Evan Lezar <elezar@nvidia.com> * feat(tests): enable tty and fix supervisor image path * fix(nix): isolate testing tools from default shell Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(tmachine): initialize test runner working directory Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(tmachine): include Ansible sources in layer cache keys Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(tmachine): build and load separate runtime images Signed-off-by: Simon Scatton <sscatton@nvidia.com> * fix(tmachine): use local runtime images for Docker Signed-off-by: Simon Scatton <sscatton@nvidia.com> --------- Signed-off-by: Simon Scatton <sscatton@nvidia.com> Signed-off-by: Evan Lezar <elezar@nvidia.com> Co-authored-by: Evan Lezar <elezar@nvidia.com>
23 lines
487 B
Nix
23 lines
487 B
Nix
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
{
|
|
lib,
|
|
OVMF,
|
|
rustPlatform,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "tmachine";
|
|
version = "0.1.0";
|
|
|
|
src = lib.cleanSource ./.;
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
env = lib.optionalAttrs stdenv.hostPlatform.isAarch64 {
|
|
TMACHINE_FIRMWARE_CODE = OVMF.firmware;
|
|
TMACHINE_FIRMWARE_VARS = OVMF.variables;
|
|
};
|
|
}
|