diff options
author | William A. Kennington III <william@wkennington.com> | 2015-04-24 15:28:48 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-04-25 21:27:53 -0700 |
commit | bcbda5d95b01c40fcb06df45996a402a221b6867 (patch) | |
tree | 0ad8a0785d326bd2f87aeab19cd4351f7fb3cc5e /pkgs/tools/networking/ntp | |
parent | 95a49c18b5ba8aea97af58626516a61ef801fc35 (diff) |
ntp: Refactor and add signing support
Diffstat (limited to 'pkgs/tools/networking/ntp')
-rw-r--r-- | pkgs/tools/networking/ntp/default.nix | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/pkgs/tools/networking/ntp/default.nix b/pkgs/tools/networking/ntp/default.nix index 93dad85ce1e7c..9bd1e7f48538d 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/; |