Unverified Commit 2a4fc94d authored by 藍+85CD's avatar 藍+85CD
Browse files
parent 4bb37b89
Loading
Loading
Loading
Loading
+10 −16
Original line number Diff line number Diff line
{ cmake
, fetchFromGitHub
, gitUpdater
, lib
, openssl
, pkg-config
, rustPlatform
{
  fetchFromGitHub,
  gitUpdater,
  lib,
  rustPlatform,
}:
rustPlatform.buildRustPackage rec {
  pname = "hatsu";
  version = "0.2.2";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "importantimport";
    repo = "hatsu";
    rev = "v${version}";
    hash = "sha256-iQrwqv5q002rJMcvUhlsLVN3O7mHyL5zmLGjegZDVG0=";
    rev = "refs/tags/v${version}";
    hash = "sha256-K+8X/bNPdjxBSJdlFIXUUOXlTq7Cgol3fFToj5KzbeE=";
  };

  cargoHash = "sha256-LkGkifmHy7cEGrPg0WCf1nCGfcW60AGWQSB0Zb01mk0=";

  nativeBuildInputs = [ cmake pkg-config ];
  buildInputs = [ openssl ];

  env = { OPENSSL_NO_VENDOR = true; };
  cargoHash = "sha256-+fNFy3WnQKtDjpNU3veoR2JrBNHj6/Wz2MQP38SR23I=";

  passthru.updateScript = gitUpdater {
    rev-prefix = "v";
@@ -32,6 +25,7 @@ rustPlatform.buildRustPackage rec {
  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 ];