anchor.diff:          paths = [ vulkan-validation-layers.headers vulkan-validation-layers ];
         }
       }"
  +    # Hide dev warnings that are useless for packaging
  +    "-Wno-dev"
     ];
   
     preConfigure = ''
  
positive.code:   '';
  
    # Same as vulkan-validation-layers
    libraryPath = lib.strings.makeLibraryPath [ vulkan-loader ];
    dontPatchELF = true;
  
    # Help vulkan-loader find the validation layers
  
negative.code: { lib
  , stdenv
  , fetchFromGitHub
  , cmake
  , python3
  , jq
  , expat
  , libX11
  , libXdmcp
  , libXrandr
  , libffi
  , libxcb
  , wayland
  , xcbutilkeysyms
  , xcbutilwm
  , vulkan-headers
  , vulkan-loader
  , symlinkJoin
  , vulkan-validation-layers
  , writeText
  }:
  
  stdenv.mkDerivation rec {
    pname = "vulkan-tools-lunarg";
    # The version must match that in vulkan-headers
    version = "1.2.176.0";
  
    src = (assert version == vulkan-headers.version;
      fetchFromGitHub {
        owner = "LunarG";
        repo = "VulkanTools";
        rev = "sdk-${version}";
        sha256 = "0p527nml2aj10rra2588dhvjmz63i6b69mc84x9s5wp85sazxxl1";
        fetchSubmodules = true;
      });
  
    nativeBuildInputs = [ cmake python3 jq ];
  
    buildInputs = [
      expat
      libX11
      libXdmcp
      libXrandr
      libffi
  