libagent: hardcode the path gpg-connect-agent

This commit is contained in:
Wael M. Nasreddine 2023-03-02 10:59:14 -08:00
parent a6e3530872
commit 9d083587ee
No known key found for this signature in database
GPG key ID: 8EBD95DC147755A2

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 = [