@@ -1,23 +1,18 @@
1−{ stdenv, fetchurl, libcap, autoreconfHook }:
1+{ stdenv, fetchurl, autoreconfHook, libcap ? null }:
22
33assert stdenv.isLinux -> libcap != null;
44
55stdenv.mkDerivation rec {
6− name = "ntp-4.2.8";
6+ name = "ntp-4.2.8p2";
77
88 src = fetchurl {
99 url = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${name}.tar.gz";
10− sha256 = "1vnqa1542d01xmlkw8f3rq57y360b2j7yxkkg9b11955nvw0v4if";
10+ sha256 = "0ccv9kh5asxpk7bjn73vwrqimbkbfl743bgx0km47bfajl7bqs8d";
1111 };
1212
13− patches = [ ./no-openssl.patch ];
13+ configureFlags = stdenv.lib.optional (libcap != null) "--enable-linuxcaps";
1414
15− configureFlags = ''
16− --without-crypto
17− ${if stdenv.isLinux then "--enable-linuxcaps" else ""}
18− '';
19−
20− buildInputs = [ autoreconfHook ] ++ stdenv.lib.optional stdenv.isLinux libcap;
15+ buildInputs = [ autoreconfHook libcap ];
2116
2217 postInstall = "rm -rf $out/share/doc";
2318