nixsgx/packages/nixsgx-test-sgx-dcap/default.nix
Harald Hoyer 1e8c8ed1c7
refactor: replace mkSGXContainer with sgxGramineContainer
- Deprecate `mkSGXContainer` in favor of `sgxGramineContainer`.
- Update references to use the new container creation function.
- Streamline the codebase by simplifying `overlays/libTee/default.nix`.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
2024-08-08 14:34:34 +02:00

25 lines
526 B
Nix

# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Matter Labs
{ pkgs
, hello
, isAzure ? false
, container-name ? "nixsgx-test-sgx-dcap"
, tag ? "latest"
}:
pkgs.lib.tee.sgxGramineContainer {
name = container-name;
inherit tag isAzure;
packages = [ hello ];
entrypoint = pkgs.lib.meta.getExe hello;
extraCmd = "echo \"Starting ${container-name}\"; gramine-sgx-sigstruct-view app.sig";
manifest = {
sgx = {
edmm_enable = false;
enclave_size = "32M";
max_threads = 2;
};
};
}