diff --git a/pkgs/by-name/nt/ntp/package.nix b/pkgs/by-name/nt/ntp/package.nix index a7123dff7a11..2d97a87c33b7 100644 --- a/pkgs/by-name/nt/ntp/package.nix +++ b/pkgs/by-name/nt/ntp/package.nix @@ -2,6 +2,7 @@ stdenv, lib, fetchurl, + autoreconfHook, openssl, perl, pps-tools, @@ -17,6 +18,12 @@ stdenv.mkDerivation rec { hash = "sha256-z4TF8/saKVKElCYk2CP/+mNBROCWz8T5lprJjvX0aOU="; }; + # fix for gcc-14 compile failure + postPatch = '' + substituteInPlace sntp/m4/openldap-thread-check.m4 \ + --replace-fail "pthread_detach(NULL)" "pthread_detach(pthread_self())" + ''; + configureFlags = [ "--sysconfdir=/etc" "--localstatedir=/var" @@ -26,6 +33,8 @@ stdenv.mkDerivation rec { "--with-yielding-select=yes" ] ++ lib.optional stdenv.hostPlatform.isLinux "--enable-linuxcaps"; + nativeBuildInputs = [ autoreconfHook ]; + buildInputs = [ openssl