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