autokuma: init at 1.0.0 (#411493)

This commit is contained in:
Aleksana
2025-06-18 11:43:11 +08:00
committed by GitHub
3 changed files with 58 additions and 0 deletions
+8
View File
@@ -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
View File
@@ -0,0 +1,11 @@
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
View File
@@ -0,0 +1,39 @@
{
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 ];
};
})