9 # nixpkgs-update: no auto update
13 x86_64-linux = "x86_64";
14 aarch64-linux = "aarch64";
16 ."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
18 baseurl = "https://github.com/firecracker-microvm/firecracker/releases/download";
23 url = "${baseurl}/v${version}/firecracker-v${version}-${suffix}.tgz";
25 hash."${stdenv.hostPlatform.system}" or (throw "unsupported system ${stdenv.hostPlatform.system}");
30 pname = "firecracker";
35 x86_64-linux = "sha256-lcE3QMfKGm37QOD1HNCp7v7h8iPNLDU4dV0Dw6m6Ujc=";
36 aarch64-linux = "sha256-xVZOdt7CuOgJLFLw+KTF9FzzF5HpWpMC9DYKdx33j2k=";
42 mv release-v${version}-${suffix}/firecracker-v${version}-${suffix} firecracker
43 mv release-v${version}-${suffix}/jailer-v${version}-${suffix} jailer
44 chmod +x firecracker jailer
49 ./firecracker --version
55 install -D firecracker $out/bin/firecracker
56 install -D jailer $out/bin/jailer
60 description = "Secure, fast, minimal micro-container virtualization";
61 homepage = "http://firecracker-microvm.io";
62 changelog = "https://github.com/firecracker-microvm/firecracker/releases/tag/v${version}";
63 mainProgram = "firecracker";
64 license = licenses.asl20;
69 maintainers = with maintainers; [