Unverified Commit ccd23742 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

libressl: add loongarch64-linux support (#402833)

parents 96417d8a 6dcaf56f
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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=";
      })
    ];
  };
}