libagent: hardcode the path gpg-connect-agent

(cherry picked from commit 9d083587ee)
This commit is contained in:
Wael M. Nasreddine
2023-03-02 10:59:14 -08:00
committed by github-actions[bot]
parent 0eeeac4ed0
commit 2b2d58bfae

View File

@@ -34,7 +34,8 @@ buildPythonPackage rec {
# hardcode the path to gpgconf in the libagent library
postPatch = ''
substituteInPlace libagent/gpg/keyring.py \
--replace "util.which('gpgconf')" "'${gnupg}/bin/gpgconf'"
--replace "util.which('gpgconf')" "'${gnupg}/bin/gpgconf'" \
--replace "'gpg-connect-agent'" "'${gnupg}/bin/gpg-connect-agent'"
'';
propagatedBuildInputs = [