anchor.diff:  , cmake
   , cmark
   , lmdb
  +, lmdbxx
  +, tweeny
   , mkDerivation
   , qtbase
   , qtmacextras
  
positive.code: , nlohmann_json
  }:
  
  # These hashes and revisions are based on those from here:
  # https://github.com/Nheko-Reborn/nheko/blob/v0.6.4/deps/CMakeLists.txt#L52
  let
    tweeny = fetchFromGitHub {
      owner = "mobius3";
      repo = "tweeny";
      rev = "b94ce07cfb02a0eb8ac8aaf66137dabdaea857cf";
      sha256 = "1wyyq0j7dhjd6qgvnh3knr70li47hmf5394yznkv9b1indqjx4mi";
    };
  
    lmdbxx = fetchFromGitHub {
      owner = "bendiken";
      repo = "lmdbxx";
      rev = "0b43ca87d8cfabba392dfe884eb1edb83874de02";
      sha256 = "1whsc5cybf9rmgyaj6qjji03fv5jbgcgygp956s3835b9f9cjg1n";
    };
  in
  mkDerivation rec {
    pname = "nheko";
    version = "0.6.4";
  
negative.code:   #  export CFLAGS=-Wno-error=gnu-zero-variadic-macro-arguments
    #'';
  
    nativeBuildInputs = [
      lmdbxx
      cmake
      pkgconfig
    ];
  
    buildInputs = [
      nlohmann_json
      tweeny
      mtxclient
      olm
      boost
  