mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 15:13:56 +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
|
@ -6,11 +6,18 @@
|
|||
, teepot
|
||||
, nixsgx
|
||||
, stdenv
|
||||
,
|
||||
}:
|
||||
let
|
||||
toolchain_with_src = (teepot.teepot.passthru.rustVersion.override {
|
||||
extensions = [ "rustfmt" "clippy" "rust-src" ];
|
||||
});
|
||||
toolchain_with_src = (
|
||||
teepot.teepot.passthru.rustVersion.override {
|
||||
extensions = [
|
||||
"rustfmt"
|
||||
"clippy"
|
||||
"rust-src"
|
||||
];
|
||||
}
|
||||
);
|
||||
in
|
||||
mkShell {
|
||||
inputsFrom = [ teepot.teepot ];
|
||||
|
@ -21,26 +28,34 @@ mkShell {
|
|||
teepot.teepot.passthru.rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
packages = with pkgs; [
|
||||
dive
|
||||
taplo
|
||||
vault
|
||||
cargo-release
|
||||
google-cloud-sdk-gce
|
||||
azure-cli
|
||||
kubectl
|
||||
kubectx
|
||||
k9s
|
||||
];
|
||||
packages =
|
||||
with pkgs;
|
||||
[
|
||||
dive
|
||||
taplo
|
||||
vault
|
||||
cargo-release
|
||||
azure-cli
|
||||
kubectl
|
||||
kubectx
|
||||
k9s
|
||||
google-cloud-sdk
|
||||
];
|
||||
|
||||
TEE_LD_LIBRARY_PATH = lib.makeLibraryPath [
|
||||
pkgs.curl
|
||||
nixsgx.sgx-dcap
|
||||
nixsgx.sgx-dcap.quote_verify
|
||||
nixsgx.sgx-dcap.default_qpl
|
||||
];
|
||||
TEE_LD_LIBRARY_PATH = lib.makeLibraryPath (
|
||||
lib.optionals (stdenv.hostPlatform.system == "x86_64-linux") [
|
||||
pkgs.curl
|
||||
nixsgx.sgx-dcap
|
||||
nixsgx.sgx-dcap.quote_verify
|
||||
nixsgx.sgx-dcap.default_qpl
|
||||
]
|
||||
);
|
||||
|
||||
QCNL_CONF_PATH = "${nixsgx.sgx-dcap.default_qpl}/etc/sgx_default_qcnl.conf";
|
||||
QCNL_CONF_PATH =
|
||||
if (stdenv.hostPlatform.system != "x86_64-linux") then
|
||||
""
|
||||
else
|
||||
"${nixsgx.sgx-dcap.default_qpl}/etc/sgx_default_qcnl.conf";
|
||||
OPENSSL_NO_VENDOR = "1";
|
||||
RUST_SRC_PATH = "${toolchain_with_src}/lib/rustlib/src/rust/library";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue