depot/pkgs/by-name/nt/ntpstat/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
697 B
Nix

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