60 Commits
Author SHA1 Message Date
Eman Resu 9d26adcd20 treewide: avoid using singleton lists for licenses 2026-07-15 13:56:52 -04:00
Philip Kannegaard Hayes c7beca362b sgx-sdk: drop
This package has been broken and unmaintained since 2024-11, when it
broke sometime around the nixos-24.11 release
2026-03-24 10:41:10 -07:00
Philip Kannegaard Hayes bbbf5bd268 sgx-psw: 2.25 -> 2.27; nixos/aesmd: update 2026-03-24 10:40:48 -07:00
nixpkgs-ci[bot]andGitHub 4a75eaec58 Merge master into staging-next 2026-02-20 12:11:50 +00:00
Stefan Frijters 65abc2b69a sgx-sdk: move env vars into env, use finalAttrs 2026-02-19 17:43:33 +01:00
Vincent Laporte 4b4a22826c sgx-sdk: pin OCaml to version 5.3 2026-01-23 14:02:17 +01:00
Emily 0ef1fe5c04 sgx-sdk: unpin GCC 2025-08-17 21:02:20 +01:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Guillaume GirolandGitHub 8bb2a40c90 sgx-psw+aesmd: 2.24 -> 2.25 (#353041) 2024-11-16 12:21:10 +01:00
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
Philip Kannegaard Hayes 2d0e1f8046 sgx-psw: 2.24 -> 2.25
Diff: <https://github.com/intel/linux-sgx/compare/sgx_2.24...sgx_2.25>

Changelog: <https://github.com/intel/linux-sgx/releases/tag/sgx_2.25>

This diff decouples the `sgx-psw` and `sgx-sdk` builds. We only need some
headers and a single tool (`sgx_edger8r`) from the base sdk in order to build
`sgx-psw`. The biggest benefit here is that I can quickly iterate on `sgx-psw`,
which takes just 3 min to build, vs. waiting 1+ hour to build both `sgx-sdk`
and `sgx-psw`.

`sgx-sdk` is also broken in an inscrutable way with 2.25 and I don't really
have the patience to waste more time on it. Now I can update the only useful
artifact (the `aesmd` service from `sgx-psw`) without wasting time on the sdk.
2024-11-01 18:16:34 -07:00
Philip Hayes 3dd129f7db sgx-ssl: openssl: 3.0.12 -> 3.0.13 2024-05-05 17:50:39 -07:00
Philip Hayes 8b050cc911 sgx-azure-dcap-client: fix warnings 2024-05-05 17:40:49 -07:00
Philip Hayes fcc7d2be75 sgx-psw: 2.23 -> 2.24 2024-05-05 16:56:53 -07:00
Philip Hayes 0c918484fb sgx-sdk: 2.23 -> 2.24
- .patch out a `git submodule update` from `make preparation`.

- Place the `ipp-crypto/fips_cert.h` header somewhere sgx-sdk can find it.

Diff: <https://github.com/intel/linux-sgx/compare/sgx_2.23...sgx_2.24>

Changelog: <https://github.com/intel/linux-sgx/releases/tag/sgx_2.24>
2024-05-05 16:40:11 -07:00
Philip Hayes ec66c8886b sgx-sdk/ipp-crypto: 2021.10.0 -> 2021.11.1
- gcc 12 and 13 are _still_ failing

- sgx-sdk now requires FIPS-mode enabled

Diff: <https://github.com/intel/ipp-crypto/compare/ippcp_2021.10.0...ippcp_2021.11.1>

Changelog: <https://github.com/intel/ipp-crypto/blob/ippcp_2021.11.1/CHANGELOG.md>
2024-05-05 16:39:46 -07:00
Philip Hayes bf15997e3d sgx-ssl: split out tests. build-only by default.
- Normally SGX has a SIM mode for running enclave tests on non-Intel SGX
  capable hardware; however, these tests do some tricky stuff with cpuid
  and CPU trap handling that make them non-portable.

- This diff makes it so OfBorg (which can't _run_ the tests) at least
  builds them. The tests are also split out into a separate derivation
  to save my sanity when iterating on them, since sgx-ssl takes like 30
  min to build...
2024-03-06 17:20:44 -08:00
Philip Hayes 9dd20575b3 sgx-sdk: disable mtime in bundled zip file for reproducible builds
Context:

The `aesm_service` binary depends on a vendored library called
`CppMicroServices`. At build time, this lib creates and then bundles
service resources into a zip file and then embeds this zip into the
binary. Without changes, the `aesm_service` will be different after every
build because the embedded zip file contents have different modified times.

All credits to @haraldh for this patch <3
2024-03-06 17:20:30 -08:00
Philip Hayes fd3978c164 sgx-sdk: add 'phlip9' as maintainer of sgx packages 2024-03-06 17:20:24 -08:00
Philip Hayes 418b770aab sgx-ssl: 1.1.1u -> 3.0.12
Diff: <https://github.com/intel/intel-sgx-ssl/compare/lin_2.21_1.1.1u...3.0_Rev2>
2024-03-06 17:20:13 -08:00
Philip Hayes 6721126b85 sgx-azure-dcap-client: 1.12.1 -> 1.12.3
Diff: <https://github.com/microsoft/Azure-DCAP-Client/compare/1.12.1...1.12.3>
2024-03-06 17:19:30 -08:00
Philip Hayes 422a893019 sgx-psw: 2.21 -> 2.23 2024-03-06 16:51:11 -08:00
Philip Hayes 25955eed5c sgx-sdk: 2.21 -> 2.23
- `make preparation` step keeps changing; use a more maintainable .patch
  approach instead of copying over steps from Makefile.

- Remove stale patch.

Diff: <https://github.com/intel/linux-sgx/compare/sgx_2.21...sgx_2.23>

Changelog (2.22): <https://github.com/intel/linux-sgx/releases/tag/sgx_2.22>

Changelog (2.23): <https://github.com/intel/linux-sgx/releases/tag/sgx_2.23>
2024-03-06 16:51:11 -08:00
Philip Hayes 3a38edd589 sgx-sdk/ipp-crypto: 2021.9.0 -> 2021.10.0
- gcc 13 still failing to compile w/o warnings...

Diff: <https://github.com/intel/ipp-crypto/compare/ippcp_2021.9.0...ippcp_2021.10.0>

Changelog: <https://github.com/intel/ipp-crypto/blob/ippcp_2021.10.0/CHANGELOG.md>
2024-03-06 16:51:11 -08:00
Sergei Trofimovich 9687bedc4c sgx-azure-dcap-client: fix gcc-13 build failure
Without the change build fails on `master` as
https://hydra.nixos.org/build/247706272:

    local_cache.cpp: In function 'void throw_if(bool, const std::string&)':
    local_cache.cpp:40:20: error: 'runtime_error' is not a member of 'std'
       40 |         throw std::runtime_error(error);
          |                    ^~~~~~~~~~~~~
    local_cache.cpp:17:1: note: 'std::runtime_error' is defined in header '<stdexcept>'; did you forget to '#include <stdexcept>'?
       16 | #include <sys/file.h>
      +++ |+#include <stdexcept>
       17 | #include <sys/stat.h>
2024-02-11 17:19:57 +00:00
Philip Hayes 84ba69f030 sgx-psw: more robust stripping w/o touching enclaves 2023-12-21 13:25:51 +01:00
Philip Hayes 8d2a5753fd sgx-sdk/ipp-crypto: 2021.7 -> 2021.9.0
- Removes `sgx-sdk` dependency on EOL OpenSSL v1.1
- Updated ipp-crypto version is technically beyond the upstream
  `linux-sgx` repo's pinned version, but appears to work just as well.

Diff: <https://github.com/intel/ipp-crypto/compare/ippcp_2021.7...ippcp_2021.9.0>

Changelog: <https://github.com/intel/ipp-crypto/blob/ippcp_2021.9.0/CHANGELOG.md>
2023-12-21 13:25:51 +01:00
Philip Hayes d8958b1861 sgx-azure-dcap-client: 1.11.2 -> 1.12.1
Release notes:
<https://github.com/microsoft/Azure-DCAP-Client/releases/tag/1.12.1>
2023-12-21 13:25:51 +01:00
Philip Hayes c037c23bda sgx-ssl: 1.1.1l -> 1.1.1u
Release notes: <https://github.com/intel/intel-sgx-ssl/releases/tag/lin_2.21_1.1.1u>
2023-12-21 13:25:50 +01:00
Philip Hayes 77d43f5fb8 sgx-psw: 2.16 -> 2.21
* Updated platform enclaves.
* Re-enable parallel build; seems to work properly across several
  different machines.
* Ensure all non-enclave libs get stripped so we don't add `gcc` to the
  runtime closure.
* I'm not sure what the value of providing a non-platfrom /bin/mount is
  for non-NixOS users for a service that isn't used that only bloats
  closure size.
2023-12-21 13:25:50 +01:00
Philip Hayes a03b0a37b6 sgx-sdk: 2.16 -> 2.21
Release notes:
<https://github.com/intel/linux-sgx/releases/tag/sgx_2.21>

sgx-sdk/ipp-crypto: 2021.3 -> 2021.7

* The `substituteInPlace` is no longer necessary as corresponding PR was
  merged.
2023-12-21 13:25:50 +01:00
Theodore Ni b14fcda6c0 sgx-psw: disable fortify3 hardening flag 2023-07-12 22:35:45 -07:00
Weijia WangandGitHub f2970c0c85 Merge pull request #219381 from 0xbe7a/sgx-gcc-11
sgx/sdk/ipp-crypto: pin stdenv to gcc11
2023-03-03 21:22:17 +02:00
be7a a0691fc810 sgx/sdk/ipp-crypto: pin stdenv to gcc11 2023-03-03 17:16:23 +01:00
Artturin f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Artturin fe1c7a1945 treewide: remove usages of header and stopNest
they're obsolete
2023-01-16 00:08:12 +02:00
SandroandGitHub c8c8ac5cc6 Merge pull request #203449 from yaxitech/azure-quote-provider 2022-12-24 16:19:39 +01:00
Julian Stecklina 2c8407089b sgx-sdk: pin to openssl_1_1
Currently, the sgx-sdk.runTestsHW attribute fails to build due to
linking errors. It looks like OpenSSL versions are mixed up.

And indeed sgx-sdk pulls in OpenSSL 3 while ipp-crypto pulls in
OpenSSL 1.1.

Fix by pinning the OpenSSL version for the SGX SDK to OpenSSL 1.1 as
well.
2022-12-12 17:18:28 +01:00
Vincent Haupert 4e937f0d6b sgx-azure-quote-provider: add test-suite derivation 2022-12-04 20:12:50 +01:00
Andreas StührkandVincent Haupert da0dc8339c nixos/aesmd: add option to configure quote provider library
Changes sgx-psw to append `aesm` to `LD_LIBRARY_PATH`:
- Append instead of prepend to allow for overriding in service config
- As we already add a wrapper to add `aesm` to `LD_LIBRARY_PATH` it is
  not necessary to also set in `LD_LIBRARY_PATH` of the systemd service.

Co-authored-by: Vincent Haupert <mail@vincent-haupert.de>
2022-12-04 20:12:50 +01:00
Andreas StührkandVincent Haupert 7de32b0ce9 sgx-azure-dcap-client: init at 1.11.2 2022-12-04 20:12:50 +01:00
ajs124 d761390cd0 sgx/sdk/ipp-crypto: pin to openssl_1_1 2022-08-17 20:16:46 +02:00
Artturin c1fffdfffb treewide: change some glibc to stdenv.cc.libc 2022-05-27 05:57:43 +03:00
Artturin 0c4d65b21e treewide: stdenv.glibc -> glibc 2022-05-25 15:51:20 +03:00
ArtturiandGitHub 4f337a99de Merge pull request #167571 from veehaitch/sgx-2.16
sgx-sdk, sgx-psw: 2.15.1 -> 2.16
2022-05-08 16:00:56 +03:00
Sandro Jäckel f96a60f950 ssl: fix nix-env version parsing 2022-04-30 02:37:20 +02:00
Vincent Haupert 02e6180ce7 sgx-psw: 2.15.1 -> 2.16 2022-04-06 21:36:44 +02:00
Vincent Haupert 8655b82de7 sgx-sdk: 2.15.1 -> 2.16 2022-04-06 21:36:28 +02:00
Naïm Favier 9160044f5f treewide/makeWrapper: replace --run cd with --chdir
Lay the groundwork for switching to binary wrappers by reducing uses
of `--run` (which is not supported by `makeBinaryWrapper`).
2022-03-19 09:46:31 +01:00