From 200fd97b046bef3f923af80ef9a776af582e7714 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Thu, 23 May 2013 02:11:21 +0000 Subject: [PATCH] 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. --- pkgs/tools/networking/chrony/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/chrony/default.nix b/pkgs/tools/networking/chrony/default.nix index 96e2ecccd0ba..d7fe07570574 100644 --- a/pkgs/tools/networking/chrony/default.nix +++ b/pkgs/tools/networking/chrony/default.nix @@ -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/";