summary refs log tree commit diff
path: root/pkgs/development/libraries/libressl
diff options
context:
space:
mode:
authorJiajie Chen <c@jia.je>2022-07-12 22:37:39 +0800
committerJiajie Chen <c@jia.je>2022-07-12 22:38:23 +0800
commitc77489d524339f28b805f0643413d37db1e3074a (patch)
treef2ce4524c5f961ad6db77bfb4e48e30dc6ce2d52 /pkgs/development/libraries/libressl
parentb3d94a92737806020c3fc13c558f32cad0726a2a (diff)
libressl: fix build on aarch64-darwin
Apply upstream pr to fix endian.h detection on aarch64-darwin.

Fix issue #181187.
Diffstat (limited to 'pkgs/development/libraries/libressl')
-rw-r--r--pkgs/development/libraries/libressl/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libressl/default.nix b/pkgs/development/libraries/libressl/default.nix
index 8ec7b2b87f5f7..82974fe072838 100644
--- a/pkgs/development/libraries/libressl/default.nix
+++ b/pkgs/development/libraries/libressl/default.nix
@@ -92,5 +92,14 @@ in {
   libressl_3_5 = generic {
     version = "3.5.3";
     hash = "sha256-OrXl6u9pziDGsXDuZNeFtCI19I8uYrCV/KXXtmcriyg=";
+
+    patches = [
+      # Fix endianness detection on aarch64-darwin, issue #181187
+      (fetchpatch {
+        name = "fix-endian-header-detection.patch";
+        url = "https://patch-diff.githubusercontent.com/raw/libressl-portable/portable/pull/771.patch";
+        sha256 = "sha256-in5U6+sl0HB9qMAtUL6Py4X2rlv0HsqRMIQhhM1oThE=";
+      })
+    ];
   };
 }