anchor.diff: -{ lib, stdenv, fetchurl, fetchpatch, cmake, makeWrapper, minizip, pcsclite, opensc, openssl
  +{ lib, stdenv, fetchurl, fetchpatch, cmake, minizip, pcsclite, opensc, openssl
   , xercesc, xml-security-c, pkg-config, xsd, zlib, xalanc, xxd }:
   
   stdenv.mkDerivation rec {
  
positive.code: 
    outputs = [ "out" "lib" "dev" "bin" ];
  
    # replace this hack with a proper cmake variable or environment variable
    # once https://github.com/open-eid/cmake/pull/34 (or #35) gets merged.
    postInstall = ''
      wrapProgram $bin/bin/digidoc-tool \
        --prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/
    '';
  
    meta = with lib; {
  
negative.code:     })
    ];
  
    nativeBuildInputs = [ cmake pkg-config xxd ];
  
    buildInputs = [
      minizip pcsclite opensc openssl xercesc
  