···11+{
22+ lib,
33+ rustPlatform,
44+ fetchFromGitHub,
55+ nix-update-script,
66+}:
77+88+rustPlatform.buildRustPackage (finalAttrs: {
99+ pname = "rkik";
1010+ version = "0.5.0";
1111+1212+ src = fetchFromGitHub {
1313+ owner = "aguacero7";
1414+ repo = "rkik";
1515+ tag = "v${finalAttrs.version}";
1616+ hash = "sha256-MVNqc0IHFZTi3Vz1OeKeRrKbk4kcM3GvfTPajs+FHew=";
1717+ };
1818+1919+ cargoHash = "sha256-CuFQFHN9O/bnZ32sQoj4aduLECpKmBXfJt5n0IH/5Tc=";
2020+2121+ passthru.updateScript = nix-update-script { };
2222+2323+ meta = {
2424+ description = "Command-line tool for querying NTP servers and comparing clock offsets";
2525+ longDescription = ''
2626+ Most systems rely on a daemon (like chronyd or ntpd) to
2727+ synchronize time. But what if you just want to inspect the
2828+ current offset between your system clock and one or more NTP
2929+ servers — without root, without sync, and without installing
3030+ anything heavyweight?
3131+3232+ RKIK is a Rust-based CLI tool designed for stateless and passive
3333+ NTP inspection, just as dig or ping are for DNS and ICMP.
3434+ '';
3535+ homepage = "https://github.com/aguacero7/rkik";
3636+ changelog = "https://github.com/aguacero7/rkik/releases/tag/v${finalAttrs.version}";
3737+ license = lib.licenses.mit;
3838+ maintainers = with lib.maintainers; [ yiyu ];
3939+ mainProgram = "rkik";
4040+ };
4141+})