mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-15 05:12:28 +01:00
feat(nix): put the e2e guest tools in the devshell
qemu, swtpm, xorriso, socat, git, python with pillow and pytest, OVMF_FD and PYTHONPATH, so the build scripts and the runner work from nix develop.
This commit is contained in:
1 parent
5840f36e1c
commit
07ef8e93d6
1 file changed
+19
@@ -447,6 +447,14 @@
|
||||
|
||||
RUST_BACKTRACE = "full";
|
||||
|
||||
# the Windows e2e guest (e2e/platforms/qemu_windows): the build
|
||||
# scripts and the runner find OVMF here, and the vendored core
|
||||
# and the platform on PYTHONPATH
|
||||
OVMF_FD = "${ovmfWithTpm}";
|
||||
shellHook = ''
|
||||
export PYTHONPATH="$PWD/e2e/lib:$PWD/e2e''${PYTHONPATH:+:$PYTHONPATH}"
|
||||
'';
|
||||
|
||||
# cross-compilation environment
|
||||
inherit (build.msvcEnv)
|
||||
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER
|
||||
@@ -474,6 +482,17 @@
|
||||
pkgs.jq
|
||||
pkgs.just
|
||||
pkgs.prettier
|
||||
|
||||
# the Windows e2e guest
|
||||
pkgs.qemu
|
||||
pkgs.swtpm
|
||||
pkgs.xorriso
|
||||
pkgs.socat
|
||||
pkgs.git
|
||||
(pkgs.python3.withPackages (p: [
|
||||
p.pillow
|
||||
p.pytest # the tests of e2e/lib
|
||||
]))
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user