f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
40 lines
936 B
Nix
40 lines
936 B
Nix
{ cmake
|
|
, fetchFromGitHub
|
|
, gitUpdater
|
|
, lib
|
|
, openssl
|
|
, pkg-config
|
|
, rustPlatform
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "hatsu";
|
|
version = "0.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "importantimport";
|
|
repo = "hatsu";
|
|
rev = "v${version}";
|
|
hash = "sha256-iQrwqv5q002rJMcvUhlsLVN3O7mHyL5zmLGjegZDVG0=";
|
|
};
|
|
|
|
cargoHash = "sha256-LkGkifmHy7cEGrPg0WCf1nCGfcW60AGWQSB0Zb01mk0=";
|
|
|
|
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;
|
|
};
|
|
}
|