anchor.diff:  
     patches = [ ./no-dropdir-literals.patch ];
   
  +  postPatch = ''
  +    sed -i configure.ac \
  +      -e "s@polkit_policy_dir=.*@polkit_policy_dir=$bin/share/polkit-1/actions@"
  +  '';
  +
     configureFlags = [
  +    "--enable-confdir=/etc"
       # The OS should care on preparing the drivers into this location
       "--enable-usbdropdir=/var/lib/pcsc/drivers"
  -    "--enable-confdir=/etc"
  -  ] ++ lib.optional stdenv.isLinux
  -    "--with-systemdsystemunitdir=\${out}/etc/systemd/system"
  -  ++ lib.optional (!stdenv.isLinux)
  -    "--disable-libsystemd";
  +  ]
  +  ++ (if stdenv.isLinux then [
  +    "--enable-ipcdir=/run/pcscd"
  +    "--enable-polkit"
  +    "--with-systemdsystemunitdir=${placeholder "bin"}/lib/systemd/system"
  +  ] else [
  +    "--disable-libsystemd"
  +  ]);
   
     postConfigure = ''
       sed -i -re '/^#define *PCSCLITE_HP_DROPDIR */ {
  
positive.code: { lib, stdenv, fetchurl, pkg-config, udev, dbus, perl, python3, IOKit }:
  
  stdenv.mkDerivation rec {
    pname = "pcsclite";
  
negative.code:     moveToOutput bin/pcsc-spy "$dev"
    '';
  
    enableParallelBuilding = true;
  
    nativeBuildInputs = [ autoreconfHook pkg-config perl ];
  
    buildInputs = [ python3 ]
      ++ lib.optionals stdenv.isLinux [ dbus polkit systemd ]
      ++ lib.optionals stdenv.isDarwin [ IOKit ];
  
    meta = with lib; {
  