From bcbda5d95b01c40fcb06df45996a402a221b6867 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 24 Apr 2015 15:28:48 -0700 Subject: [PATCH] ntp: Refactor and add signing support --- pkgs/tools/networking/ntp/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/ntp/default.nix b/pkgs/tools/networking/ntp/default.nix index 93dad85ce1e7..9bd1e7f48538 100644 --- a/pkgs/tools/networking/ntp/default.nix +++ b/pkgs/tools/networking/ntp/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, autoreconfHook, libcap ? null }: +{ stdenv, fetchurl, autoreconfHook, libcap ? null, openssl ? null }: assert stdenv.isLinux -> libcap != null; @@ -10,11 +10,18 @@ stdenv.mkDerivation rec { sha256 = "0ccv9kh5asxpk7bjn73vwrqimbkbfl743bgx0km47bfajl7bqs8d"; }; - configureFlags = stdenv.lib.optional (libcap != null) "--enable-linuxcaps"; + configureFlags = [ + "--sysconfdir=/etc" + "--localstatedir=/var" + "--enable-ignore-dns-errors" + ] ++ stdenv.lib.optional (libcap != null) "--enable-linuxcaps"; - buildInputs = [ autoreconfHook libcap ]; + nativeBuildInputs = [ autoreconfHook ]; + buildInputs = [ libcap openssl ]; - postInstall = "rm -rf $out/share/doc"; + postInstall = '' + rm -rf $out/share/doc + ''; meta = { homepage = http://www.ntp.org/;