3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/ntp/default.nix

25 lines
653 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, libcap, openssl }:
assert stdenv.isLinux -> libcap != null;
2014-02-03 22:15:25 +00:00
stdenv.mkDerivation rec {
name = "ntp-4.2.8";
2014-02-03 22:15:25 +00:00
src = fetchurl {
url = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${name}.tar.gz";
sha256 = "1vnqa1542d01xmlkw8f3rq57y360b2j7yxkkg9b11955nvw0v4if";
};
2014-02-03 22:15:25 +00:00
nativeBuildInputs = [ pkgconfig ];
2014-02-03 22:15:25 +00:00
buildInputs = [ openssl ]
++ stdenv.lib.optional stdenv.isLinux libcap;
meta = {
homepage = http://www.ntp.org/;
description = "An implementation of the Network Time Protocol";
2014-02-03 22:15:25 +00:00
maintainers = [ stdenv.lib.maintainers.eelco ];
platforms = stdenv.lib.platforms.linux;
};
}