[PATCH v3 2/6] vm-lib: add mesa drivers to VM

Alyssa Ross
2023-07-21T18:00:45Z

From: Alyssa Ross <alyssa.ross@unikie.com>

Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com>
Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
vm-lib/make-vm.nix | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vm-lib/make-vm.nix b/vm-lib/make-vm.nix
index 85a0ce6..80e6ef5 100644
--- a/vm-lib/make-vm.nix
+++ b/vm-lib/make-vm.nix
@@ -33,7 +33,8 @@ runCommand "spectrum-vm" {
mkdir -p "$out"/{blk,providers,shared-dirs}

${../scripts/make-erofs.sh} -L ext -- "$out/blk/run.img" ${run} run \
- $(comm -23 <(sort ${writeReferencesToFile run}) \
+ ${pkgs.pkgsMusl.mesa.drivers} / \
+ $(comm -23 <(sort ${writeReferencesToFile run} ${writeReferencesToFile pkgs.pkgsMusl.mesa.drivers}) \
<(sort ${writeReferencesToFile basePaths}) | sed p)

pushd "$out"
--
2.40.1