anchor.diff: -{ lib, stdenv, fetchurl, pkg-config, udev, dbus, perl, python3, IOKit }:
  +{ stdenv
  +, lib
  +, fetchurl
  +, autoreconfHook
  +, pkg-config
  +, perl
  +, python3
  +, dbus
  +, polkit
  +, systemd
  +, IOKit
  +}:
   
   stdenv.mkDerivation rec {
     pname = "pcsclite";
  
positive.code: 
    patches = [ ./no-dropdir-literals.patch ];
  
    configureFlags = [
      # 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";
  
    postConfigure = ''
      sed -i -re '/^#define *PCSCLITE_HP_DROPDIR */ {
  
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; {
  