2022-01-13 20:06:32 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "htpdate";
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twekkel";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-X7r95Uc4oGB0eVum5D7pC4tebZIyyz73g6Q/D0cjuFM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"prefix=$(out)"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Utility to fetch time and set the system clock over HTTP";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/twekkel/htpdate";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Plus;
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with maintainers; [ julienmalka ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "htpdate";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|