about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/htpdate/default.nix
blob: d03b08cf5eb5efec70314079e9a5dc6e0a84bd16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  version = "1.2.2";
  pname = "htpdate";

  src = fetchurl {
    url = "http://www.vervest.org/htp/archive/c/${pname}-${version}.tar.xz";
    sha256 = "0mgr350qwgzrdrwkb9kaj6z7l6hn6a2pwh7sacqvnal5fyc9a7sz";
  };

  makeFlags = [
    "INSTALL=install"
    "STRIP=${stdenv.cc.bintools.targetPrefix}strip"
    "prefix=$(out)"
  ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "Utility to fetch time and set the system clock over HTTP";
    homepage = "http://www.vervest.org/htp/";
    platforms = platforms.linux;
    license = licenses.gpl2Plus;
  };
}