anchor.diff:  , sqlite
   , file
   , gzip
  +, makeWrapper
   , notmuch
     # Build with support for notmuch backend
   , withNotmuch ? true
  
positive.code: 
    cargoBuildFlags = lib.optional withNotmuch "--features=notmuch";
  
    nativeBuildInputs = [ pkgconfig gzip ];
  
    buildInputs = [ openssl dbus sqlite ] ++ lib.optional withNotmuch notmuch;
  
  
negative.code:     mkdir -p $out/share/man/man5
      gzip < docs/meli.conf.5 > $out/share/man/man5/meli.conf.5.gz
      gzip < docs/meli-themes.5 > $out/share/man/man5/meli-themes.5.gz
    '' + lib.optionalString withNotmuch ''
      # Fixes this runtime error when meli is started with notmuch configured:
      # $ meli
      # libnotmuch5 was not found in your system. Make sure it is installed and
      # in the library paths.
      # notmuch is not a valid mail backend
      wrapProgram $out/bin/meli --set LD_LIBRARY_PATH ${notmuch}/lib
    '';
  
    meta = with stdenv.lib; {
  