Skip to content

Commit

Permalink
guix: add missing patch
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Dec 20, 2024
1 parent 41d6fdb commit 019d87c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions contrib/guix/patches/oscrypto-hard-code-openssl.patch
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 019d87c

Please sign in to comment.