mbedtls: 3.2.1 -> 3.3.0

Changelog: https://github.com/Mbed-TLS/mbedtls/blob/mbedtls-3.3.0/ChangeLog

Removed NIX_CFLAGS_COMPILE which is not needed anymore, and disabled
generation of source code by using the generated code that is already
present in releases. This avoids new build-time dependencies for
mbedtls 3.
This commit is contained in:
Raphael Robatsch 2022-12-14 22:12:02 +00:00
parent aac46d7460
commit 110e3ce89a
2 changed files with 10 additions and 6 deletions

View file

@ -1,6 +1,6 @@
{ callPackage }:
callPackage ./generic.nix {
version = "3.2.1";
hash = "sha256-+M36NvFe4gw2PRbld/2JV3yBGrqK6soWcmrSEkUNcrc=";
version = "3.3.0";
hash = "sha256-yb5migP5Tcw99XHFzJkCct4f5R6ztxPR43VQcfTGRtE=";
}

View file

@ -32,10 +32,14 @@ stdenv.mkDerivation rec {
perl scripts/config.pl set MBEDTLS_THREADING_PTHREAD # POSIX thread wrapper layer for the threading layer.
'';
cmakeFlags = [ "-DUSE_SHARED_MBEDTLS_LIBRARY=on" ];
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
"-Wno-error=format"
"-Wno-error=format-truncation"
cmakeFlags = [
"-DUSE_SHARED_MBEDTLS_LIBRARY=on"
# Avoid a dependency on jsonschema and jinja2 by not generating source code
# using python. In releases, these generated files are already present in
# the repository and do not need to be regenerated. See:
# https://github.com/Mbed-TLS/mbedtls/releases/tag/v3.3.0 below "Requirement changes".
"-DGEN_FILES=off"
];
meta = with lib; {