Unverified Commit afa7590a authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

autokuma: init at 1.0.0 (#411493)

parents 79707d24 6e3bd7ea
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -10188,6 +10188,14 @@
    githubId = 1064477;
    name = "Hannes Hornwall";
  };
  hougo = {
    name = "Hugo Renard";
    email = "hugo.renard@proton.me";
    matrix = "@hougo:liiib.re";
    github = "hrenard";
    githubId = 7594435;
    keys = [ { fingerprint = "3AE9 67F9 2C9F 55E9 03C8  283F 3A28 5FD4 7020 9C59"; } ];
  };
  hoverbear = {
    email = "operator+nix@hoverbear.org";
    matrix = "@hoverbear:matrix.org";
+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 ];
  };
})