anchor.diff:        --replace $\{TSL_URL} file://${tsl}
     '';
   
  -  patches = [
  -    # https://github.com/open-eid/qdigidoc/pull/163
  -    ./qt511.patch
  -  ];
  -
     buildInputs = [
       libdigidocpp
       opensc
  
positive.code: { stdenv, fetchgit, fetchurl, cmake, darkhttpd, gettext, makeWrapper, pkgconfig
  , libdigidocpp, opensc, openldap, openssl, pcsclite, qtbase, qttranslations }:
  
  stdenv.mkDerivation rec {
    name = "qdigidoc-${version}";
    version = "3.13.6";
  
    src = fetchgit {
      url = "https://github.com/open-eid/qdigidoc";
      rev = "v${version}";
      sha256 = "1qq9fgvkc7fi37ly3kgxksrm4m5rxk9k5s5cig8z0cszsfk6h9lx";
      fetchSubmodules = true;
    };
  
  
negative.code:     openssl
      pcsclite
      qtbase
      qtsvg
      qttranslations
    ];
  
    postInstall = ''
      wrapProgram $out/bin/qdigidoc4 \
        --prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/
    '';
  
  