From 67147392357b3a61352ff9c04148f8df70baa367 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Wed, 16 Oct 2024 21:10:08 -0700 Subject: [PATCH] ntpstat: init at 0.6 Co-authored-by: Aleksana --- pkgs/by-name/nt/ntpstat/package.nix | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/by-name/nt/ntpstat/package.nix diff --git a/pkgs/by-name/nt/ntpstat/package.nix b/pkgs/by-name/nt/ntpstat/package.nix new file mode 100644 index 000000000000..7293cf6925fa --- /dev/null +++ b/pkgs/by-name/nt/ntpstat/package.nix @@ -0,0 +1,32 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "ntpstat"; + version = "0.6"; + + src = fetchFromGitHub { + owner = "mlichvar"; + repo = "ntpstat"; + rev = "${finalAttrs.version}"; + hash = "sha256-dw6Pi+aB7uK65H0HL7q1vYnM5Dp0D+kG+ZIaiv8VH5I="; + }; + + postPatch = '' + patchShebangs ntpstat + ''; + + makeFlags = [ "prefix=${placeholder "out"}" ]; + + meta = { + description = "Print the ntpd or chronyd synchronisation status"; + homepage = "https://github.com/mlichvar/ntpstat"; + license = lib.licenses.mit; + mainProgram = "nptstat"; + maintainers = with lib.maintainers; [ hzeller ]; + platforms = lib.platforms.all; + }; +})