3
0
Fork 0
forked from mirrors/nixpkgs

salt: fix runtime error on darwin

This commit is contained in:
Weijia Wang 2022-12-08 15:59:15 +01:00 committed by Winter
parent a6a225e33c
commit 0cd235bc68

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 ""