diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 459af64996ca..2e29fd89dc3d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/by-name/au/autokuma/no-doctest.patch b/pkgs/by-name/au/autokuma/no-doctest.patch new file mode 100644 index 000000000000..b958bfccbef4 --- /dev/null +++ b/pkgs/by-name/au/autokuma/no-doctest.patch @@ -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" diff --git a/pkgs/by-name/au/autokuma/package.nix b/pkgs/by-name/au/autokuma/package.nix new file mode 100644 index 000000000000..ec80cb3f2db3 --- /dev/null +++ b/pkgs/by-name/au/autokuma/package.nix @@ -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 ]; + }; +})