From 8ab9645b5af94e0f9bcbc71bfe955fb5fa8a03d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 13 Apr 2026 12:07:27 +0200 Subject: [PATCH] opensp: fixup build on darwin by using older autoconf Certainly feel free to find a better solution. The usual ones were failing for me, e.g. it used -std=gnu17 also for C++ (which fails). --- pkgs/by-name/op/opensp/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/op/opensp/package.nix b/pkgs/by-name/op/opensp/package.nix index d012bfa04f33..de0e48c4351e 100644 --- a/pkgs/by-name/op/opensp/package.nix +++ b/pkgs/by-name/op/opensp/package.nix @@ -7,6 +7,7 @@ docbook_xml_dtd_412, docbook_xsl, autoconf, + autoconf269, automake, libtool, autoreconfHook, @@ -61,7 +62,8 @@ stdenv.mkDerivation (finalAttrs: { ] # Clang 16 fails to build due to inappropriate definitions in the `config.h` generated by the # existing configure scripts. Regenerate them to make sure they detect its features correctly. - ++ lib.optional stdenv.cc.isClang autoreconfHook + # autoconf269: as autoconf 2.73 is trying to force C23 (-std=gnu23) which will fail, we use 2.69. + ++ lib.optionals stdenv.cc.isClang [ autoconf269 autoreconfHook ] ++ lib.optionals stdenv.hostPlatform.isCygwin [ autoconf automake