summary refs log tree commit diff
path: root/pkgs/tools/networking/ntp/default.nix
blob: b84c9cccfeb073704290b7e27edd45089166b12f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{stdenv, fetchurl, libcap}:

assert stdenv.isLinux -> libcap != null;
 
stdenv.mkDerivation {
  name = "ntp-4.2.2p4";
  src = fetchurl {
    url = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.2p4.tar.gz;
    md5 = "916fe57525f8327f340b203f129088fa";
  };
  configureFlags = "
    ${if stdenv.isLinux then "--enable-linuxcaps" else ""}
  ";
  buildInputs = if stdenv.isLinux then [libcap] else [];
}