shadowsocks-libev: fix compilation with mbedtls 3

mbedtls_2 is no longer maintained. Backport an upstream patch to fix
compilation with mbedtls 3, and replace mbedtls_2 in buildInputs with
mbedtls.
This commit is contained in:
Alex James
2025-11-26 15:08:28 -06:00
parent 138c537d36
commit e7fa454729
+10 -2
View File
@@ -2,9 +2,10 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
libsodium,
mbedtls_2,
mbedtls,
libev,
c-ares,
pcre,
@@ -28,9 +29,16 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
patches = [
(fetchpatch {
url = "https://github.com/shadowsocks/shadowsocks-libev/commit/9afa3cacf947f910be46b69fc5a7a1fdd02fd5e6.patch";
hash = "sha256-rpWXe8f95UU1DjQpbKMVMwA6r5yGVaDHwH/iWxW7wcw=";
})
];
buildInputs = [
libsodium
mbedtls_2
mbedtls
libev
c-ares
pcre