Unverified Commit 6e3bd7ea authored by Hugo Renard's avatar Hugo Renard
Browse files

autokuma: init at 1.0.0

parent 78aae1f4
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
diff --git a/kuma-client/Cargo.toml b/kuma-client/Cargo.toml
index 144be59..017e1de 100644
--- a/kuma-client/Cargo.toml
+++ b/kuma-client/Cargo.toml
@@ -1,3 +1,6 @@
+[lib]
+doctest = false
+
 [package]
 name = "kuma-client"
 description = "Rust wrapper for the Uptime Kuma Socket.IO API"
+39 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  rustPlatform,
  pkg-config,
  openssl,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "autokuma";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "BigBoot";
    repo = "AutoKuma";
    tag = "v${finalAttrs.version}";
    hash = "sha256-o1W0ssR4cjzx9VWg3qS2RhJEe4y4Ez/Y+4yRgXs6q0Y=";
  };

  cargoHash = "sha256-nu37qOv34nZ4pkxX7mu4zoLJFZWw3QCPQDS7SMKhqVw=";

  patches = [ ./no-doctest.patch ];

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

  postInstall = ''
    mv $out/bin/crdgen $out/bin/autokuma-crdgen
  '';

  meta = {
    description = "Utility that automates the creation of Uptime Kuma monitors";
    homepage = "https://github.com/BigBoot/AutoKuma";
    mainProgram = "autokuma";
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ hougo ];
  };
})