From cedd36b37200fff9ed1150a3afb9fe2dd0c63ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ignas=20Vy=C5=A1niauskas?= Date: Thu, 24 Oct 2024 17:26:42 +0300 Subject: [PATCH] Fix: copy instead of symlinking to produce extra test files --- testing/end-to-end/virtualisation-config.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/testing/end-to-end/virtualisation-config.nix b/testing/end-to-end/virtualisation-config.nix index 0b2c4757..3c201c04 100644 --- a/testing/end-to-end/virtualisation-config.nix +++ b/testing/end-to-end/virtualisation-config.nix @@ -2,10 +2,11 @@ with lib; let cfg = config.playos.e2e-tests; - virtfsDir = pkgs.linkFarm "extra-files" [{ - name = "playos-config.toml"; - path = cfg.overlayConfig; - }]; + # Note: cannot use symlinks (e.g. `linkFarm`) here + virtfsDir = pkgs.runCommand "extra-test-files" {} '' + mkdir -p $out + cp ${cfg.overlayConfig} $out/ + ''; in { options = {