aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/networking/openntpd
diff options
context:
space:
mode:
authorRicardo M. Correia <rcorreia@wizy.org>2017-02-16 22:06:57 +0100
committerRicardo M. Correia <rcorreia@wizy.org>2017-10-30 18:42:02 +0100
commitf7616c4f5e2c869192f353843a31eff7dab68d7f (patch)
tree094dfe3d0f26c076779a01798d3acf70e6984a19 /pkgs/tools/networking/openntpd
parent25c8014a4bd3db23b603f557d0a12b5fc905919a (diff)
openntpd: fix constraints feature on NixOS
The OpenNTPD constraints feature requires a valid chain of SSL certificates, but the default path in openntpd didn't match the one in NixOS. Unfortunately the configured certificate path becomes hardcoded into the binary, so this feature will likely still fail on other distributions/operating systems, unless the path coincides with the NixOS path or the user sets up a symlink.
Diffstat (limited to 'pkgs/tools/networking/openntpd')
-rw-r--r--pkgs/tools/networking/openntpd/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/tools/networking/openntpd/default.nix b/pkgs/tools/networking/openntpd/default.nix
index 2b2b441f2f98..7e1c257ec4b6 100644
--- a/pkgs/tools/networking/openntpd/default.nix
+++ b/pkgs/tools/networking/openntpd/default.nix
@@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
"--with-privsep-user=${privsepUser}"
"--sysconfdir=/etc"
"--localstatedir=/var"
+ "--with-cacert=/etc/ssl/certs/ca-certificates.crt"
];
buildInputs = [ libressl ];