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

31 lines
802 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libcap, autoreconfHook }:
assert stdenv.isLinux -> libcap != null;
2014-02-03 23:15:25 +01:00
stdenv.mkDerivation rec {
name = "ntp-4.2.8";
2014-02-03 23:15:25 +01:00
src = fetchurl {
url = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${name}.tar.gz";
sha256 = "1vnqa1542d01xmlkw8f3rq57y360b2j7yxkkg9b11955nvw0v4if";
};
2014-02-03 23:15:25 +01:00
patches = [ ./no-openssl.patch ];
2014-02-03 23:15:25 +01:00
configureFlags = ''
--without-crypto
${if stdenv.isLinux then "--enable-linuxcaps" else ""}
'';
buildInputs = [ autoreconfHook ] ++ stdenv.lib.optional stdenv.isLinux libcap;
postInstall = "rm -rf $out/share/doc";
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;
};
}