feat: rename manifest and sigs to app by default via appName parameter

This will ease the creation of scripts processing containers further.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-06-26 12:11:42 +02:00
parent f6c55e4229
commit 83f9cc24ee
Signed by: harald
GPG key ID: F519A1143B3FBE32
3 changed files with 17 additions and 32 deletions

View file

@ -5,15 +5,18 @@
, inputs
, nixsgx
, hello
, isAzure ? false
, container-name ? "nixsgx-test-sgx-dcap"
, tag ? "latest"
}:
pkgs.callPackage lib.nixsgx.mkSGXContainer {
name = "nixsgx-test-sgx-dcap";
tag = "latest";
name = container-name;
inherit tag isAzure;
packages = [ hello ];
entrypoint = lib.meta.getExe hello;
isAzure = false;
extraCmd = "echo \"Starting ${container-name}\"; gramine-sgx-sigstruct-view app.sig";
manifest = {
sgx = {