anchor.diff:  , autoreconfHook, pkgconfig
   , gtk3, nssTools, pcsclite
   , libxml2, libproxy 
  -, openssl, curl }:
  +, openssl, curl
  +, makeWrapper }:
   
   stdenv.mkDerivation rec {
     name = "eid-mw-${version}";
  
positive.code:     license = licenses.lgpl3;
      longDescription = ''
        Allows user authentication and digital signatures with Belgian ID cards.
        Also requires a running pcscd service and compatible card reader.
  
        This package only installs the libraries. To use eIDs in NSS-compatible
        browsers like Chrom{e,ium} or Firefox, each user must first execute:
  
          ~$ eid-nssdb add
  
        (Running the script once as root with the --system option enables eID
        support for all users, but will *not* work when using Chrom{e,ium}!)
  
        Before uninstalling this package, it is a very good idea to run
  
          ~$ eid-nssdb [--system] remove
  
        and remove all ~/.pki and/or /etc/pki directories no longer needed.
      '';
      platforms = platforms.linux;
  
negative.code: 
    configureFlags = [ "--enable-dialogs=yes" ];
  
    postInstall = ''
      install -D ${./eid-nssdb.in} $out/bin/eid-nssdb
      substituteInPlace $out/bin/eid-nssdb \
        --replace "modutil" "${nssTools}/bin/modutil"
  
      rm $out/bin/about-eid-mw
      wrapProgram $out/bin/eid-viewer --prefix XDG_DATA_DIRS : "$out/share/gsettings-schemas/$name" 
    '';
  
    enableParallelBuilding = true;
  
    doCheck = true;
  
    meta = with stdenv.lib; {
      description = "Belgian electronic identity card (eID) middleware";
  