nixpkgs/pkgs/tools/networking/ntp/default.nix

27 lines
687 B
Nix
Raw Normal View History

2014-02-03 23:15:25 +01:00
{ stdenv, fetchurl, libcap }:
assert stdenv.isLinux -> libcap != null;
2014-02-03 23:15:25 +01:00
stdenv.mkDerivation rec {
2014-02-03 23:15:25 +01:00
name = "ntp-4.2.6p5";
src = fetchurl {
url = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${name}.tar.gz";
2014-02-03 23:15:25 +01:00
sha256 = "077r69a41hasl8zf5c44km7cqgfhrkaj6a4jnr75j7nkz5qq7ayn";
};
2014-02-03 23:15:25 +01:00
configureFlags = ''
--without-crypto
${if stdenv.isLinux then "--enable-linuxcaps" else ""}
'';
2014-02-03 23:15:25 +01:00
buildInputs = stdenv.lib.optional stdenv.isLinux libcap;
meta = {
homepage = http://www.ntp.org/;
description = "An implementation of the Network Time Protocol";
2014-02-03 23:15:25 +01:00
maintainers = [ stdenv.lib.maintainers.eelco ];
platforms = stdenv.lib.platforms.linux;
};
}