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.
This commit is contained in:
Ricardo M. Correia 2017-02-16 22:06:57 +01:00
parent 25c8014a4b
commit f7616c4f5e

View File

@ -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 ];