diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2014-12-25 12:28:12 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2014-12-25 12:30:53 +0100 |
commit | 0fbc5ddadb47c704ce4e41792ce4d61d8ee1c9af (patch) | |
tree | 19c55fefa1529d13e46d26758e362e0d0113826a | |
parent | 600534513cdba6cd25fdfb5002688e49418e5a87 (diff) |
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.
-rw-r--r-- | pkgs/tools/networking/ntp/default.nix | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/tools/networking/ntp/default.nix b/pkgs/tools/networking/ntp/default.nix index 465f15184f143..fca6f2e34adc8 100644 --- a/pkgs/tools/networking/ntp/default.nix +++ b/pkgs/tools/networking/ntp/default.nix @@ -1,21 +1,19 @@ -{ stdenv, fetchurl, libcap }: +{ stdenv, fetchurl, pkgconfig, libcap, openssl }: assert stdenv.isLinux -> libcap != null; stdenv.mkDerivation rec { - name = "ntp-4.2.6p5"; + name = "ntp-4.2.8"; src = fetchurl { url = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${name}.tar.gz"; - sha256 = "077r69a41hasl8zf5c44km7cqgfhrkaj6a4jnr75j7nkz5qq7ayn"; + sha256 = "1vnqa1542d01xmlkw8f3rq57y360b2j7yxkkg9b11955nvw0v4if"; }; - configureFlags = '' - --without-crypto - ${if stdenv.isLinux then "--enable-linuxcaps" else ""} - ''; + nativeBuildInputs = [ pkgconfig ]; - buildInputs = stdenv.lib.optional stdenv.isLinux libcap; + buildInputs = [ openssl ] + ++ stdenv.lib.optional stdenv.isLinux libcap; meta = { homepage = http://www.ntp.org/; |