notbot 0.6.13

Matrix chatbot, primarily used around the Warsaw Hackerspace channels and spaces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ lib, rustPlatform, pkg-config, openssl, sqlite, fontconfig, freetype, ... }:
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 fontconfig freetype ];

  postInstall = ''
    cp -r $src/webui $out/webui
  '';
}