nixsgx/packages/nixsgx-test-sgx-dcap/default.nix
Harald Hoyer 50f3adc1c6
feat(gramine): v1.7 -> v1.8
Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
2024-11-12 17:28:54 +01: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 = 4;
};
};
}