@@ -20,6 +20,9 @@ stdenv.mkDerivation rec {
21 patchPhase = ''
21 patchPhase = ''
22 find tests -type f | xargs sed -e 's@/bin/pwd@${coreutils}&@g' -i
22 find tests -type f | xargs sed -e 's@/bin/pwd@${coreutils}&@g' -i
23+ '' + stdenv.lib.optionalString stdenv.isDarwin ''
24+ find . -name pcsc-wrapper.c | xargs sed -i 's/typedef unsinged int pcsc_dword_t/typedef unsigned int pcsc_dword_t/'
23 patch gl/stdint_.h < ${./clang.patch}
26 patch gl/stdint_.h < ${./clang.patch}