diff --git a/pkgs/by-name/rk/rkik/package.nix b/pkgs/by-name/rk/rkik/package.nix new file mode 100644 index 000000000000..49caaa95ef36 --- /dev/null +++ b/pkgs/by-name/rk/rkik/package.nix @@ -0,0 +1,41 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "rkik"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "aguacero7"; + repo = "rkik"; + tag = "v${finalAttrs.version}"; + hash = "sha256-MVNqc0IHFZTi3Vz1OeKeRrKbk4kcM3GvfTPajs+FHew="; + }; + + cargoHash = "sha256-CuFQFHN9O/bnZ32sQoj4aduLECpKmBXfJt5n0IH/5Tc="; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Command-line tool for querying NTP servers and comparing clock offsets"; + longDescription = '' + Most systems rely on a daemon (like chronyd or ntpd) to + synchronize time. But what if you just want to inspect the + current offset between your system clock and one or more NTP + servers — without root, without sync, and without installing + anything heavyweight? + + RKIK is a Rust-based CLI tool designed for stateless and passive + NTP inspection, just as dig or ping are for DNS and ICMP. + ''; + homepage = "https://github.com/aguacero7/rkik"; + changelog = "https://github.com/aguacero7/rkik/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ yiyu ]; + mainProgram = "rkik"; + }; +})