vkquake: fix build on darwin

This commit is contained in:
Weijia Wang 2024-01-27 17:45:48 +01:00
parent 11b4c5b070
commit ff9169be93

View file

@ -36,6 +36,10 @@ stdenv.mkDerivation rec {
makeFlags = [ "prefix=$(out) bindir=$(out)/bin" ];
env = lib.optionalAttrs stdenv.isDarwin {
NIX_CFLAGS_COMPILE = "-Wno-error=unused-but-set-variable";
};
postFixup = ''
wrapProgram $out/bin/vkquake \
--prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib