2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2016-08-02 22:56:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-26 21:12:46 +00:00
|
|
|
version = "1.2.2";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "htpdate";
|
2016-08-02 22:56:10 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://www.vervest.org/htp/archive/c/${pname}-${version}.tar.xz";
|
2019-09-26 21:12:46 +00:00
|
|
|
sha256 = "0mgr350qwgzrdrwkb9kaj6z7l6hn6a2pwh7sacqvnal5fyc9a7sz";
|
2016-08-02 22:56:10 +00:00
|
|
|
};
|
|
|
|
|
2017-11-02 23:21:16 +00:00
|
|
|
makeFlags = [
|
|
|
|
"INSTALL=install"
|
2017-11-25 18:43:57 +00:00
|
|
|
"STRIP=${stdenv.cc.bintools.targetPrefix}strip"
|
2016-08-02 22:56:10 +00:00
|
|
|
"prefix=$(out)"
|
|
|
|
];
|
|
|
|
|
2017-11-02 23:21:16 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-02 22:56:10 +00:00
|
|
|
description = "Utility to fetch time and set the system clock over HTTP";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.vervest.org/htp/";
|
2018-03-19 21:18:22 +00:00
|
|
|
platforms = platforms.linux;
|
2017-11-02 23:21:16 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2016-08-02 22:56:10 +00:00
|
|
|
};
|
|
|
|
}
|