mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 23:23:57 +02:00
feat: compat code for non x86_64-linux
- do not build packages, which require `x86_64-linux` - use Phala `dcap-qvl` crate for remote attestation, if possible - nix: exclude `nixsgx` on non `x86_64-linux` platforms Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
parent
ed808efd03
commit
eb39705ff1
41 changed files with 1531 additions and 519 deletions
|
@ -2,6 +2,7 @@
|
|||
# Copyright (c) 2024 Matter Labs
|
||||
{ teepot
|
||||
, pkgs
|
||||
, stdenv
|
||||
, vat
|
||||
, vault
|
||||
, container-name ? "teepot-vault-sgx-azure"
|
||||
|
@ -12,6 +13,7 @@ let
|
|||
entrypoint = "${teepot.teepot.tee_ratls_preexec}/bin/tee-ratls-preexec";
|
||||
appDir = "/opt/vault";
|
||||
in
|
||||
if (stdenv.hostPlatform.system != "x86_64-linux") then { } else
|
||||
pkgs.lib.tee.sgxGramineContainer {
|
||||
name = container-name;
|
||||
inherit tag;
|
||||
|
@ -86,5 +88,3 @@ pkgs.lib.tee.sgxGramineContainer {
|
|||
sys.experimental__enable_flock = true;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue