anchor.diff: -{ stdenv, lib, fetchpatch, fetchurl, autoreconfHook, pkgconfig
  -, openssl, netcat-gnu, gnutls, gsasl, libidn, Security
  +{ stdenv, lib, fetchurl, autoreconfHook, pkgconfig
  +, netcat-gnu, gnutls, gsasl, libidn2, Security
   , withKeyring ? true, libsecret ? null
   , systemd ? null }:
   
  
positive.code:   meta = with stdenv.lib; {
      description = "Simple and easy to use SMTP client with excellent sendmail compatibility";
      homepage = https://marlam.de/msmtp/;
      license = licenses.gpl3;
      maintainers = with maintainers; [ garbas peterhoeg ];
      platforms = platforms.unix;
    };
  
negative.code: in stdenv.mkDerivation rec {
    pname = "msmtp";
    name = "${pname}-${version}";
    version = "1.8.1";
  
    src = fetchurl {
      url = "https://marlam.de/msmtp/releases/${name}.tar.xz";
      sha256 = "1nm4vizrnrrnknc4mc8nr7grz9q76m1vraa0hsl5rfm34gnsg8ph";
    };
  
    patches = [
      ./paths.patch
    ];
  
    buildInputs = [ gnutls gsasl libidn2 ]
      ++ stdenv.lib.optional stdenv.isDarwin Security
      ++ stdenv.lib.optional withKeyring libsecret;
  
  