diff options
author | Vincent Haupert <mail@vincent-haupert.de> | 2022-01-15 13:08:16 +0100 |
---|---|---|
committer | Vincent Haupert <mail@vincent-haupert.de> | 2022-01-15 13:08:31 +0100 |
commit | 6639cd8c652dcd99862b852766272fc2136f47da (patch) | |
tree | b680d3f44e1186259a99cec0d3c795df3d569e7f /pkgs/os-specific/linux/sgx | |
parent | db091609ffcee8751219f67d58823632aebcac2d (diff) | |
download | nixpkgs-6639cd8c652dcd99862b852766272fc2136f47da.tar nixpkgs-6639cd8c652dcd99862b852766272fc2136f47da.tar.gz nixpkgs-6639cd8c652dcd99862b852766272fc2136f47da.tar.bz2 nixpkgs-6639cd8c652dcd99862b852766272fc2136f47da.tar.lz nixpkgs-6639cd8c652dcd99862b852766272fc2136f47da.tar.xz nixpkgs-6639cd8c652dcd99862b852766272fc2136f47da.tar.zst nixpkgs-6639cd8c652dcd99862b852766272fc2136f47da.zip |
sgx-ssl: don't run test app in `installCheckPhase`
Although we build the test app in SGX simulation mode which does not require hardware SGX support, SGX SSL fails to initialize on non-Intel CPUs. This is unexpected (and inconsistent with the `sgx-sdk` sample code we run in the `installCheckPhase`) and subject to an upstream issue: https://github.com/intel/intel-sgx-ssl/issues/113 Revert this commit as soon as the issue is resolved by Intel.
Diffstat (limited to 'pkgs/os-specific/linux/sgx')
-rw-r--r-- | pkgs/os-specific/linux/sgx/ssl/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/sgx/ssl/default.nix b/pkgs/os-specific/linux/sgx/ssl/default.nix index 174d789a61b..c54eda19d6a 100644 --- a/pkgs/os-specific/linux/sgx/ssl/default.nix +++ b/pkgs/os-specific/linux/sgx/ssl/default.nix @@ -67,9 +67,14 @@ stdenv.mkDerivation rec { "DESTDIR=$(out)" ]; - # Build and run the test app + # Build the test app + # + # Running the test app is currently only supported on Intel CPUs + # and will fail on non-Intel CPUs even in SGX simulation mode. + # Therefore, we only build the test app without running it until + # upstream resolves the issue: https://github.com/intel/intel-sgx-ssl/issues/113 doInstallCheck = true; - installCheckTarget = "all test"; + installCheckTarget = "all"; installCheckFlags = [ "SGX_MODE=SIM" "-C sgx/test_app" |