libressl: add loongarch64-linux support

+15
+15
pkgs/development/libraries/libressl/default.nix
··· 174 174 libressl_4_0 = generic { 175 175 version = "4.0.0"; 176 176 hash = "sha256-TYQZVfCsw9/HHQ49018oOvRhIiNQ4mhD/qlzHAJGoeQ="; 177 + # Fixes build on loongarch64 178 + # https://github.com/libressl/portable/pull/1146 179 + patches = [ 180 + (fetchpatch { 181 + name = "0100-ALT-basic-loongarch64-support.patch"; 182 + 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"; 183 + stripLen = 2; 184 + extraPrefix = ""; 185 + postFetch = '' 186 + substituteInPlace "$out" \ 187 + --replace-fail "a//dev/null" "/dev/null" 188 + ''; 189 + hash = "sha256-dEdtmHHiR7twAqgebXv1Owle/KYCak71NhDCp0PdseU="; 190 + }) 191 + ]; 177 192 }; 178 193 }