3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #191588 from lopsided98/gnupg-pcsclite

This commit is contained in:
Sandro 2022-10-02 00:00:13 +02:00 committed by GitHub
commit 3ab780c752
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,8 @@
, libgpg-error, libiconv, npth, gettext, texinfo, buildPackages
, guiSupport ? stdenv.isDarwin, enableMinimal ? false
, adns, bzip2, gnutls, libusb1, openldap
, tpm2-tss, pcsclite, pinentry, readline, sqlite, zlib
, tpm2-tss, pinentry, readline, sqlite, zlib
, withPcsc ? !enableMinimal, pcsclite
}:
assert guiSupport -> enableMinimal == false;
@ -43,7 +44,7 @@ stdenv.mkDerivation rec {
];
postPatch = ''
sed -i 's,\(hkps\|https\)://keyserver.ubuntu.com,hkps://keys.openpgp.org,g' configure configure.ac doc/dirmngr.texi doc/gnupg.info-1
'' + lib.optionalString (stdenv.isLinux && (!enableMinimal)) ''
'' + lib.optionalString (stdenv.isLinux && withPcsc) ''
sed -i 's,"libpcsclite\.so[^"]*","${lib.getLib pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
'';