From 019d87c5a6f93e1ccf3c9c3cb9795830ff77aeb6 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 20 Dec 2024 23:24:32 +0100 Subject: [PATCH] guix: add missing patch --- .../guix/patches/oscrypto-hard-code-openssl.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 contrib/guix/patches/oscrypto-hard-code-openssl.patch diff --git a/contrib/guix/patches/oscrypto-hard-code-openssl.patch b/contrib/guix/patches/oscrypto-hard-code-openssl.patch new file mode 100644 index 0000000..32027f2 --- /dev/null +++ b/contrib/guix/patches/oscrypto-hard-code-openssl.patch @@ -0,0 +1,13 @@ +diff --git a/oscrypto/__init__.py b/oscrypto/__init__.py +index eb27313..371ab24 100644 +--- a/oscrypto/__init__.py ++++ b/oscrypto/__init__.py +@@ -302,3 +302,8 @@ def load_order(): + 'oscrypto._win.tls', + 'oscrypto.tls', + ] ++ ++ ++paths = '@GUIX_OSCRYPTO_USE_OPENSSL@'.split(',') ++assert len(paths) == 2, 'Value for OSCRYPTO_USE_OPENSSL env var must be two paths separated by a comma' ++use_openssl(*paths)