mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
0fbc5ddadb
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.
25 lines
653 B
Nix
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;
|
|
};
|
|
}
|