nixpkgs/pkgs/tools/networking/htpdate/default.nix
2022-01-10 14:53:08 +01:00

26 lines
583 B
Nix

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "1.3.1";
pname = "htpdate";
src = fetchFromGitHub {
owner = "twekkel";
repo = pname;
rev = "v${version}";
sha256 = "JPaxbu7LlGV+Bh5qxVxeNSPnMQNqLaLYWBRbpETSpQs=";
};
makeFlags = [
"prefix=$(out)"
];
meta = with lib; {
description = "Utility to fetch time and set the system clock over HTTP";
homepage = "https://github.com/twekkel/htpdate";
platforms = platforms.linux;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ julienmalka ];
};
}