libagent: hardcode the path to gpgconf

This commit is contained in:
Wael M. Nasreddine 2023-03-02 09:49:09 -08:00
parent 8d38e23966
commit a6e3530872
No known key found for this signature in database
GPG Key ID: 8EBD95DC147755A2

View File

@ -5,6 +5,7 @@
, cryptography
, ed25519
, ecdsa
, gnupg
, semver
, mnemonic
, unidecode
@ -30,6 +31,12 @@ buildPythonPackage rec {
sha256 = "sha256-RISAy0efdatr9u4CWNRGnlffkC8ksw1NyRpJWKwqz+s=";
};
# hardcode the path to gpgconf in the libagent library
postPatch = ''
substituteInPlace libagent/gpg/keyring.py \
--replace "util.which('gpgconf')" "'${gnupg}/bin/gpgconf'"
'';
propagatedBuildInputs = [
unidecode
backports-shutil-which