glsl_analyzer: fix on x86_64-darwin (#356886)

This commit is contained in:
Emily
2024-11-25 04:30:39 +00:00
committed by GitHub
@@ -2,6 +2,7 @@
, stdenv
, fetchFromGitHub
, zig_0_13
, apple-sdk_11
}:
stdenv.mkDerivation (finalAttrs: {
@@ -19,6 +20,12 @@ stdenv.mkDerivation (finalAttrs: {
zig_0_13.hook
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
# The package failed to build on x86_64-darwin because the default was the 10.12 SDK
# Once the default on all platforms has been raised to the 11.0 SDK or higher, this can be removed.
apple-sdk_11
];
postPatch = ''
substituteInPlace build.zig \
--replace-fail 'b.run(&.{ "git", "describe", "--tags", "--always" })' '"${finalAttrs.src.rev}"'