1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

ntpstat: init at 0.6

Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
This commit is contained in:
Henner Zeller 2024-10-16 21:10:08 -07:00
parent 3a5940b539
commit 6714739235

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