nixpkgs-suyu/pkgs/tools/networking/htpdate/default.nix

27 lines
638 B
Nix
Raw Normal View History

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