Skip to content

Commit

Permalink
update README with new buildEif function
Browse files Browse the repository at this point in the history
  • Loading branch information
cottand committed Apr 12, 2024
1 parent c260f6b commit f215179
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,22 @@ Flake quick start, to build an enclave with nixpkgs' `hello` :
nitro = nitro-util.lib.${system};
eifArch = "x86_64";
in {
packages.${system}.eif-hello-world = nitro.mkEif {
# use AWS' nitro-cli kernel and kernelConfig
inherit (nitro.blobs.${eifArch}) kernel kernelConfig;
packages.${system}.eif-hello-world = nitro.buildEif {
name = "eif-hello-world";
# use AWS' nitro-cli binary blobs
inherit (nitro.blobs.${eifArch}) kernel kernelConfig;
arch = eifArch;
name = "eif-hello-world";
ramdisks = [
(lib.mkSysRamdisk { init = lib.blobs.${eifArch}.init; nsmKo = lib.blobs.${eifArch}.nsmKo; })
(lib.mkUserRamdisk { entrypoint = "/bin/hello"; env = ""; rootfs = pkgs.legacyPackages.${system}.hello; })
];
init = lib.blobs.${eifArch}.init;
nsmKo = lib.blobs.${eifArch}.nsmKo;
entrypoint = "/bin/hello";
env = "";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ pkgs.hello ];
pathsToLink = [ "/bin" ];
};
};
};
}
Expand Down

0 comments on commit f215179

Please sign in to comment.