From fd2fa7c92c29c0f466febdc4c3b11fa46d3c74a1 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Tue, 23 Jul 2024 20:10:09 -0400 Subject: [PATCH] firecracker-vm: expose components in passthru --- pkgs/firecracker-vm/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/firecracker-vm/default.nix b/pkgs/firecracker-vm/default.nix index edce103..739dcf8 100644 --- a/pkgs/firecracker-vm/default.nix +++ b/pkgs/firecracker-vm/default.nix @@ -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; }; +}