2017-11-02 23:21:16 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2016-08-02 23:56:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-02 23:21:16 +00:00
|
|
|
version = "1.2.0";
|
2016-08-02 23:56:10 +01:00
|
|
|
name = "htpdate-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-11-02 23:21:16 +00:00
|
|
|
url = "http://www.vervest.org/htp/archive/c/${name}.tar.xz";
|
|
|
|
sha256 = "00xwppq3aj951m0srjvxmr17kiaaflyjmbfkvpnfs3jvqhzczci2";
|
2016-08-02 23:56:10 +01: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 23:56:10 +01:00
|
|
|
"prefix=$(out)"
|
|
|
|
];
|
|
|
|
|
2017-11-02 23:21:16 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-08-02 23:56:10 +01:00
|
|
|
description = "Utility to fetch time and set the system clock over HTTP";
|
|
|
|
homepage = http://www.vervest.org/htp/;
|
2017-11-02 23:21:16 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2Plus;
|
2016-08-02 23:56:10 +01:00
|
|
|
};
|
|
|
|
}
|