Unverified Commit a5fcd810 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #268084 from trofi/zix-darwin-fix

zix: workaround -Wno-error=implicit-function-declaration build fails …
parents 4dc53c24 ee1d5dbf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -28,6 +28,13 @@ stdenv.mkDerivation rec {
    "-Ddocs=disabled"
  ];

  env = lib.optionalAttrs stdenv.isDarwin {
    # Do not fail the build on clang-16/darwin.
    # TODO: drop the workaround when upstream fixes it in:
    #   https://gitlab.com/drobilla/zix/-/issues/3
    NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
  };

  meta = with lib; {
    description = "A lightweight C99 portability and data structure library";
    homepage = "https://gitlab.com/drobilla/zix";