nixpkgs/pkgs/by-name/ha/hatsu/package.nix
nixpkgs-merge-bot[bot] eae3e3ddaf
hatsu: 0.3.2 -> 0.3.3 (#396408)
Co-authored-by: kwaa <kwaa@users.noreply.github.com>
2025-04-06 02:43:08 +00:00

38 lines
1009 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "hatsu";
version = "0.3.3";
src = fetchFromGitHub {
owner = "importantimport";
repo = "hatsu";
tag = "v${version}";
hash = "sha256-mqs26srbEkGeQzeF4OdqI7o18Ajs+mmAXGLlVfS52sk=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-5c6boVdq0XXbtVHqmIGoxJGQRh8lvn2jbmALPuOSMs4=";
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Self-hosted and fully-automated ActivityPub bridge for static sites";
homepage = "https://github.com/importantimport/hatsu";
changelog = "https://github.com/importantimport/hatsu/releases/tag/v${version}";
license = lib.licenses.agpl3Only;
mainProgram = "hatsu";
maintainers = with lib.maintainers; [ kwaa ];
platforms = lib.platforms.linux;
};
}