2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgs
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, openssl
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "hebbot";
|
|
|
|
version = "2.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haecker-felix";
|
|
|
|
repo = "hebbot";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-zcsoTWpNonkgJLTC8S9Nubnzdhj5ROL/UGNWUsLxLgs=";
|
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"matrix-qrcode-0.1.0" = "sha256-g78Ql+r5NYNcnkoirH9E6AHagZgBCgxBfweaX1D0z0E=";
|
|
|
|
};
|
|
|
|
};
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config cmake ] ++
|
|
|
|
lib.optionals stdenv.isDarwin [ autoconf automake ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Matrix bot which can generate \"This Week in X\" like blog posts ";
|
2022-08-21 13:32:41 +00:00
|
|
|
homepage = "https://github.com/haecker-felix/hebbot";
|
|
|
|
changelog = "https://github.com/haecker-felix/hebbot/releases/tag/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = with licenses; [ agpl3Only ];
|
2023-11-16 04:20:00 +00:00
|
|
|
mainProgram = "hebbot";
|
2022-08-21 13:32:41 +00:00
|
|
|
maintainers = with maintainers; [ a-kenji ];
|
|
|
|
};
|
|
|
|
}
|