mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ 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=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"matrix-qrcode-0.1.0" = "sha256-g78Ql+r5NYNcnkoirH9E6AHagZgBCgxBfweaX1D0z0E=";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config cmake ] ++
|
|
lib.optionals stdenv.isDarwin [ autoconf automake ];
|
|
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
|
|
|
|
meta = with lib; {
|
|
description = "Matrix bot which can generate \"This Week in X\" like blog posts ";
|
|
homepage = "https://github.com/haecker-felix/hebbot";
|
|
changelog = "https://github.com/haecker-felix/hebbot/releases/tag/v${version}";
|
|
license = with licenses; [ agpl3Only ];
|
|
mainProgram = "hebbot";
|
|
maintainers = with maintainers; [ a-kenji ];
|
|
};
|
|
}
|