Merge pull request #320173 from sn0wm1x/hatsu

hatsu: init at 0.2.0
This commit is contained in:
Jonas Heinrich 2024-06-16 23:55:01 +02:00 committed by GitHub
commit c20473241d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 50 additions and 0 deletions

View File

@ -11370,6 +11370,16 @@
githubId = 11614750;
name = "Alexander Sharov";
};
kwaa = {
name = "+85CD";
email = "kwa@kwaa.dev";
matrix = "@kwaa:matrix.org";
github = "kwaa";
githubId = 50108258;
keys = [{
fingerprint = "ABCB A12F 1A8E 3CCC F10B 5109 4444 7777 3333 4444";
}];
};
kwohlfahrt = {
email = "kai.wohlfahrt@gmail.com";
github = "kwohlfahrt";

View File

@ -0,0 +1,40 @@
{ cmake
, fetchFromGitHub
, gitUpdater
, lib
, openssl
, pkg-config
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "hatsu";
version = "0.2.0";
src = fetchFromGitHub {
owner = "importantimport";
repo = "hatsu";
rev = "v${version}";
hash = "sha256-gBzhuV0SDmNwl5PkpdGxkMBn5m4vEXfv23WK7+ZzQs8=";
};
cargoHash = "sha256-A2tl0jjKODA/qodxkIe/3V4ZDGV4X0myiduJsLtd7r0=";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ openssl ];
env = { OPENSSL_NO_VENDOR = true; };
passthru.updateScript = gitUpdater {
rev-prefix = "v";
ignoredVersions = "beta";
};
meta = {
description = "Self-hosted and fully-automated ActivityPub bridge for static sites";
homepage = "https://github.com/importantimport/hatsu";
license = lib.licenses.agpl3Only;
mainProgram = "hatsu";
maintainers = with lib.maintainers; [ kwaa ];
platforms = lib.platforms.linux;
};
}