From 40a19c1d4745b3882a113132bed40e65f9c30ccf Mon Sep 17 00:00:00 2001 From: Alexander Lash <167740+abl@users.noreply.github.com> Date: Tue, 26 Dec 2023 17:08:42 -0800 Subject: [PATCH] jam: set std=c89 jam relies on c89 conventions; this restores the ability to build on recent Darwin. --- pkgs/development/tools/build-managers/jam/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/tools/build-managers/jam/default.nix b/pkgs/development/tools/build-managers/jam/default.nix index 2a40c5970984..bf06954df4de 100644 --- a/pkgs/development/tools/build-managers/jam/default.nix +++ b/pkgs/development/tools/build-managers/jam/default.nix @@ -7,6 +7,9 @@ let depsBuildBuild = [ buildPackages.stdenv.cc ]; nativeBuildInputs = [ bison ]; + # Jam uses c89 conventions + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-std=c89"; + # Jambase expects ar to have flags. preConfigure = '' export AR="$AR rc"