Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

mbedtls_2: fix build on gcc-14

https://github.com/Mbed-TLS/mbedtls/commit/990a88cd53d40ff42481a2c200b05f656507f326

+10 -1
+10 -1
pkgs/development/libraries/mbedtls/2.nix
··· 1 - { callPackage }: 1 + { callPackage, fetchpatch }: 2 2 3 3 callPackage ./generic.nix { 4 4 version = "2.28.9"; 5 5 hash = "sha256-/Bm05CvS9t7WSh4qoMconCaD7frlmA/H9YDyJOuGuFE="; 6 + patches = [ 7 + # https://github.com/Mbed-TLS/mbedtls/pull/9529 8 + # switch args to calloc in test macro to fix build with gcc-14 9 + (fetchpatch { 10 + name = "gcc-14-fixes.patch"; 11 + url = "https://github.com/Mbed-TLS/mbedtls/commit/990a88cd53d40ff42481a2c200b05f656507f326.patch"; 12 + hash = "sha256-Ki8xjm4tbzLZGNUr4hRbf+dlp05ejvl44ddroWJZY4w="; 13 + }) 14 + ]; 6 15 }