nixpkgs/pkgs/tools/networking/ntp/default.nix
Eelco Dolstra 33db7f3dd3 * Build ntpd with capabilities support.
svn path=/nixpkgs/trunk/; revision=7462
2006-12-22 19:22:57 +00:00

16 lines
408 B
Nix

{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 [];
}