nixpkgs/pkgs/tools/networking/ntp/default.nix
Vladimír Čunát 0fbc5ddadb ntp: security update, and use libcrypto
http://support.ntp.org/bin/view/Main/SecurityNotice#Recent_Vulnerabilities

The package would no longer build without libcrypto,
and it wouldn't find it without pkgconfig.
I checked that Debian and Arch do use openssl as a dependency,
so it's probably not so bad a thing to have.

CC maintainer @edolstra.
2014-12-25 12:30:53 +01:00

25 lines
653 B
Nix

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