Unverified Commit 8cc8dbc1 authored by Emily's avatar Emily Committed by GitHub
Browse files

glsl_analyzer: fix on x86_64-darwin (#356886)

parents 2b2e6614 6d404af7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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}"'