at v192 32 lines 860 B view raw
1{ stdenv, fetchurl, autoreconfHook, libcap ? null, openssl ? null }: 2 3assert stdenv.isLinux -> libcap != null; 4 5stdenv.mkDerivation rec { 6 name = "ntp-4.2.8p3"; 7 8 src = fetchurl { 9 url = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${name}.tar.gz"; 10 sha256 = "13zkzcvjm5kbxl4xbcmaq07slplhmpkgahzcqnqlba3cxpra9341"; 11 }; 12 13 configureFlags = [ 14 "--sysconfdir=/etc" 15 "--localstatedir=/var" 16 "--enable-ignore-dns-errors" 17 ] ++ stdenv.lib.optional (libcap != null) "--enable-linuxcaps"; 18 19 nativeBuildInputs = [ autoreconfHook ]; 20 buildInputs = [ libcap openssl ]; 21 22 postInstall = '' 23 rm -rf $out/share/doc 24 ''; 25 26 meta = { 27 homepage = http://www.ntp.org/; 28 description = "An implementation of the Network Time Protocol"; 29 maintainers = [ stdenv.lib.maintainers.eelco ]; 30 platforms = stdenv.lib.platforms.linux; 31 }; 32}