nixpkgs/pkgs/by-name/nt/ntpstat/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
697 B
Nix
Raw Normal View History

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