ntpstat: init at 0.6 (#349196)

This commit is contained in:
Aleksana 2024-10-17 16:59:58 +08:00 committed by GitHub
commit 84e42f9c31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
};
})