about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2024-06-20 19:29:29 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2024-06-29 13:34:31 -0400
commitd41da41ee4f74fc39ba40ad50205f3400e026167 (patch)
treeedcef9d05f922be9d14e436b433f4b16a15eae5a /pkgs/development/libraries
parent97550cd031187e597ec28c9ffd1adce4f7b4afc1 (diff)
openssl: Fix build on OpenBSD
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/openssl/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix
index 361756f94ea90..981ab14ddcaaf 100644
--- a/pkgs/development/libraries/openssl/default.nix
+++ b/pkgs/development/libraries/openssl/default.nix
@@ -143,6 +143,15 @@ let
       # trying to build binaries statically.
       ++ lib.optional static "no-ct"
       ++ lib.optional withZlib "zlib"
+      # /dev/crypto support has been dropped in OpenBSD 5.7.
+      #
+      # OpenBSD's ports does this too,
+      # https://github.com/openbsd/ports/blob/a1147500c76970fea22947648fb92a093a529d7c/security/openssl/3.3/Makefile#L25.
+      #
+      # https://github.com/openssl/openssl/pull/10565 indicated the
+      # intent was that this would be configured properly automatically,
+      # but that doesn't appear to be the case.
+      ++ lib.optional stdenv.hostPlatform.isOpenBSD "no-devcryptoeng"
       ++ lib.optionals (stdenv.hostPlatform.isMips && stdenv.hostPlatform ? gcc.arch) [
       # This is necessary in order to avoid openssl adding -march
       # flags which ultimately conflict with those added by