14 stdenv.mkDerivation rec {
19 url = "https://ccid.apdu.fr/files/${pname}-${version}.tar.bz2";
20 hash = "sha256-GUcI91/jadRd18Feiz6Kfbi0nPxVV1dMoqLnbvEsoMo=";
25 substituteInPlace src/Makefile.in --replace-fail /bin/echo echo
30 "--enable-serialconfdir=${placeholder "out"}/etc/reader.conf.d"
31 "--enable-ccidtwindir=${placeholder "out"}/pcsc/drivers/serial"
32 "--enable-usbdropdir=${placeholder "out"}/pcsc/drivers"
35 # error: call to undeclared function 'InterruptRead';
36 # ISO C99 and later do not support implicit function declarations
37 env = lib.optionalAttrs stdenv.cc.isClang {
38 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
54 install -Dm 0444 -t $out/lib/udev/rules.d src/92_pcscd_ccid.rules
55 substituteInPlace $out/lib/udev/rules.d/92_pcscd_ccid.rules \
56 --replace-fail "/usr/sbin/pcscd" "${pcsclite}/bin/pcscd"
59 # The resulting shared object ends up outside of the default paths which are
60 # usually getting stripped.
61 stripDebugList = [ "pcsc" ];
63 passthru.updateScript = gitUpdater {
64 url = "https://salsa.debian.org/rousseau/CCID.git";
68 description = "PC/SC driver for USB CCID smart card readers";
69 homepage = "https://ccid.apdu.fr/";
70 license = licenses.lgpl21Plus;
71 maintainers = [ maintainers.anthonyroussel ];
72 platforms = platforms.unix;