git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitf7616c4f5e2c869192f353843a31eff7dab68d7f authorRicardo M. Correia <rcorreia@wizy.org> dateThu 16 Feb 2017, 22:06 (10 years ago) parent25c8014
1 file changed+1
pkgs/tools/networking/openntpd/default.nix+1
pkgs/tools/networking/openntpd/default.nix+1
@@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
1717 "--with-privsep-user=${privsepUser}"
1818 "--sysconfdir=/etc"
1919 "--localstatedir=/var"
20+ "--with-cacert=/etc/ssl/certs/ca-certificates.crt"
2021 ];
2122
2223 buildInputs = [ libressl ];