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-01-01 19:49:23 +01:00
|
|
|
name = "ntp-4.2.4";
|
2006-12-21 23:23:17 +01:00
|
|
|
src = fetchurl {
|
2007-01-01 19:49:23 +01:00
|
|
|
url = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.4.tar.gz;
|
|
|
|
md5 = "eb9147d26cbe18bd8fbec07f1df55aef";
|
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
|
|
|
}
|