3
0
Fork 0
forked from mirrors/nixpkgs

chrony: Add readline and libcap (on Linux) as dependencies

libcap is needed for chronyd to drop privileges when starting up.
readline was added as a convenience for when using chronyc.
This commit is contained in:
Ricardo M. Correia 2013-05-23 02:11:21 +00:00
parent 229661eed3
commit 200fd97b04

View file

@ -1,4 +1,6 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, libcap, readline }:
assert stdenv.isLinux -> libcap != null;
stdenv.mkDerivation rec {
name = "chrony-1.27";
@ -8,6 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "17dfhcm5mrkg8ids0ajwscryr7fm7664kz10ygsa1ac047p3aj6l";
};
buildInputs = [ readline ] ++ stdenv.lib.optional stdenv.isLinux libcap;
meta = with stdenv.lib; {
description = "A pair of programs which are used to maintain the accuracy of the system clock on a computer.";
homepage = "http://chrony.tuxfamily.org/";