anchor.diff:    ];
     postPatch = ''
       sed -i 's,\(hkps\|https\)://keyserver.ubuntu.com,hkps://keys.openpgp.org,g' configure configure.ac doc/dirmngr.texi doc/gnupg.info-1
  -  '' + lib.optionalString (stdenv.isLinux && pcsclite != null) ''
  +  '' + lib.optionalString (stdenv.isLinux && (!enableMinimal)) ''
       sed -i 's,"libpcsclite\.so[^"]*","${lib.getLib pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
     '';
   
  
positive.code:   nativeBuildInputs = [ pkg-config texinfo ];
    buildInputs = [
      libgcrypt libassuan libksba libiconv npth gettext
      readline libusb1 gnutls adns openldap zlib bzip2 sqlite
    ] ++ optional (!stdenv.isDarwin) tpm2-tss ;
  
    patches = [
      ./fix-libusb-include-path.patch
  
negative.code: { fetchurl, fetchpatch, lib, stdenv, pkg-config, libgcrypt, libassuan, libksba
  , libgpg-error, libiconv, npth, gettext, texinfo, buildPackages
  , guiSupport ? stdenv.isDarwin, enableMinimal ? false
  , adns, bzip2, gnutls, libusb1, openldap
  , tpm2-tss, pcsclite, pinentry, readline, sqlite, zlib
  }:
  
  assert guiSupport -> enableMinimal == false;
  
  stdenv.mkDerivation rec {
    pname = "gnupg";
  