firecracker-vm: expose components in passthru

This commit is contained in:
Sean Buckley 2024-07-23 20:10:09 -04:00
parent dd406792a0
commit fd2fa7c92c

View file

@ -1,6 +1,6 @@
{ callPackage
, firecracker
, writeShellScriptBin
, writeShellApplication
, writeText
}:
@ -27,6 +27,8 @@ let
});
in
writeShellScriptBin "firecracker-vm" ''
${firecracker}/bin/firecracker --no-api --config-file ${vmconfig}
''
writeShellApplication {
name = "firecracker-vm";
text = "${firecracker}/bin/firecracker --no-api --config-file ${vmconfig}";
derivationArgs.passthru = { inherit kernel rootfs; };
}