nixpkgs-suyu/pkgs/tools/networking/ntp/default.nix
Lluís Batlle i Rossell 74ef91cfae Updating ntp
svn path=/nixpkgs/trunk/; revision=30290
2011-11-07 15:07:19 +00:00

24 lines
596 B
Nix

{stdenv, fetchurl, libcap}:
assert stdenv.isLinux -> libcap != null;
stdenv.mkDerivation rec {
name = "ntp-4.2.6p4";
src = fetchurl {
url = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${name}.tar.gz";
sha256 = "1ww1hpy0yfmj13vs46d80hs48hy8ig6kn6p6d8q2syym02khxhyy";
};
configureFlags = ''
--without-crypto
${if stdenv.isLinux then "--enable-linuxcaps" else ""}
'';
buildInputs = stdenv.lib.optional stdenv.isLinux libcap;
meta = {
homepage = http://www.ntp.org/;
description = "An implementation of the Network Time Protocol";
};
}