gnupg21: Add -lintl on Darwin systems

This commit is contained in:
John Wiegley 2016-11-22 09:00:11 -08:00
parent 682bb54cc4
commit 113986f07a
No known key found for this signature in database
GPG Key ID: C144D8F4F19FE630

View File

@ -27,6 +27,8 @@ stdenv.mkDerivation rec {
readline libusb gnutls adns openldap zlib bzip2
];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
patches = [ ./fix-libusb-include-path.patch ];
postPatch = stdenv.lib.optionalString stdenv.isLinux ''
sed -i 's,"libpcsclite\.so[^"]*","${pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c