gts: fix Darwin build by setting -std=gnu17. (#508619)

This commit is contained in:
Vladimír Čunát
2026-04-11 09:47:21 +00:00
committed by GitHub
+5
View File
@@ -32,6 +32,11 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [ gettext ];
propagatedBuildInputs = [ glib ];
env = lib.optionalAttrs stdenv.isDarwin {
# Doesn't build on Darwin with -std=gnu23.
NIX_CFLAGS_COMPILE = "-std=gnu17";
};
doCheck = false; # fails with "permission denied"
preBuild = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''