From 8622694e99efaf7837ca15473f27ee90fe042af8 Mon Sep 17 00:00:00 2001 From: FlameFlag Date: Sun, 19 Apr 2026 18:53:09 +0300 Subject: [PATCH] phpExtensions.bcmath: fix Darwin build by setting `-std=gnu17` Refs: https://github.com/NixOS/nixpkgs/issues/511329 --- pkgs/top-level/php-packages.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 1a438f6400aa..5de61dc5921e 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -417,7 +417,10 @@ lib.makeScope pkgs.newScope ( # # These will be passed as arguments to mkExtension above. extensionData = [ - { name = "bcmath"; } + { + name = "bcmath"; + env.NIX_CFLAGS_COMPILE = "-std=gnu17"; + } { name = "bz2"; buildInputs = [ bzip2 ];