3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/ntp/default.nix
Eelco Dolstra 6556756115 * ntp 4.2.4p7.
svn path=/nixpkgs/trunk/; revision=15828
2009-06-02 19:35:26 +00:00

25 lines
596 B
Nix

{stdenv, fetchurl, libcap}:
assert stdenv.isLinux -> libcap != null;
stdenv.mkDerivation rec {
name = "ntp-4.2.4p7";
src = fetchurl {
url = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${name}.tar.gz";
sha256 = "1hq1iz54md8imc4a60jcmljlm5jk8ql7x40v7kbnc1ndwly8i0an";
};
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";
};
}