libressl: add loongarch64-linux support (#402833)

This commit is contained in:
Franz Pletz
2025-04-30 12:39:24 +02:00
committed by GitHub
@@ -174,5 +174,20 @@ in
libressl_4_0 = generic {
version = "4.0.0";
hash = "sha256-TYQZVfCsw9/HHQ49018oOvRhIiNQ4mhD/qlzHAJGoeQ=";
# Fixes build on loongarch64
# https://github.com/libressl/portable/pull/1146
patches = [
(fetchpatch {
name = "0100-ALT-basic-loongarch64-support.patch";
url = "https://git.altlinux.org/gears/L/LibreSSL.git?p=LibreSSL.git;a=blob_plain;f=patches/0100-ALT-basic-loongarch64-support.patch;hb=70ddea860b8b62531bd3968bf4d7a5c4b7086776";
stripLen = 2;
extraPrefix = "";
postFetch = ''
substituteInPlace "$out" \
--replace-fail "a//dev/null" "/dev/null"
'';
hash = "sha256-dEdtmHHiR7twAqgebXv1Owle/KYCak71NhDCp0PdseU=";
})
];
};
}