salt: fix runtime error on darwin

This commit is contained in:
Weijia Wang
2022-12-18 14:03:16 -05:00
committed by Winter
parent a6a225e33c
commit 0cd235bc68
+2 -1
View File
@@ -1,4 +1,5 @@
{ lib
, stdenv
, python3
, openssl
, fetchpatch
@@ -35,7 +36,7 @@ python3.pkgs.buildPythonApplication rec {
postPatch = ''
substituteInPlace "salt/utils/rsax931.py" \
--subst-var-by "libcrypto" "${lib.getLib openssl}/lib/libcrypto.so"
--subst-var-by "libcrypto" "${lib.getLib openssl}/lib/libcrypto${stdenv.hostPlatform.extensions.sharedLibrary}"
substituteInPlace requirements/base.txt \
--replace contextvars ""