Skip to content

Commit

Permalink
openntpd: fix constraints feature on NixOS
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit f7616c4)
  • Loading branch information
wizeman authored and Mic92 committed Nov 3, 2017
1 parent 8c6dbd7 commit f2d4898
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/tools/networking/openntpd/default.nix
Expand Up @@ -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 ];
Expand Down

0 comments on commit f2d4898

Please sign in to comment.