notbot 0.6.12

Matrix chatbot, primarily used around the Warsaw Hackerspace channels and spaces
Documentation
{
  lib,
  rustPlatform,
  pkg-config,
  openssl,
  sqlite,
  ...
}:
let
  cargoToml = fromTOML (builtins.readFile (./. + "/Cargo.toml"));
in
rustPlatform.buildRustPackage {
  pname = cargoToml.package.name;
  version = cargoToml.package.version;
  cargoLock = {
    lockFile = ./Cargo.lock;
  };

  src = lib.cleanSource ./.;
  nativeBuildInputs = [ pkg-config ];

  RUSTFLAGS = "--cfg tokio_unstable";

  buildInputs = [
    openssl
    sqlite
  ];
}