gnupg: fix build on darwin

This commit is contained in:
Jason "Don" O'Conal 2015-07-10 10:18:29 +10:00
parent 036722ab7c
commit db3602b5d6

View File

@ -21,7 +21,8 @@ stdenv.mkDerivation rec {
buildInputs
= [ readline zlib libgpgerror libgcrypt libassuan libksba pth
openldap bzip2 libusb curl libiconv ];
openldap bzip2 curl libiconv ]
++ stdenv.lib.optional (!stdenv.isDarwin) libusb;
patchPhase = ''
find tests -type f | xargs sed -e 's@/bin/pwd@${coreutils}&@g' -i