2006-12-22 20:22:57 +01:00
|
|
|
{stdenv, fetchurl, libcap}:
|
|
|
|
|
|
|
|
assert stdenv.isLinux -> libcap != null;
|
2006-12-21 23:23:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-09-11 12:15:07 +02:00
|
|
|
name = "ntp-4.2.4p3";
|
2006-12-21 23:23:17 +01:00
|
|
|
src = fetchurl {
|
2007-09-11 12:15:07 +02:00
|
|
|
url = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.4p3.tar.gz;
|
|
|
|
sha256 = "077y1hw6v0qnp3j3w3pcxgsc76waswqhwsbzfj3jqc79jfh65jv9";
|
2006-12-21 23:23:17 +01:00
|
|
|
};
|
2006-12-22 20:22:57 +01:00
|
|
|
configureFlags = "
|
2006-12-22 23:16:06 +01:00
|
|
|
--without-crypto
|
2006-12-22 20:22:57 +01:00
|
|
|
${if stdenv.isLinux then "--enable-linuxcaps" else ""}
|
|
|
|
";
|
|
|
|
buildInputs = if stdenv.isLinux then [libcap] else [];
|
2006-12-21 23:23:17 +01:00
|
|
|
}
|