anchor.diff:      # Fix running wayland-scanner for the build platform when cross-compiling.
       # See comment here: https://github.com/libsdl-org/SDL/issues/4860#issuecomment-1119003545
       substituteInPlace configure \
  -      --replace '$(WAYLAND_SCANNER)' "${buildPackages.wayland-scanner}/bin/wayland-scanner"
  +      --replace '$(WAYLAND_SCANNER)' 'wayland-scanner'
     '';
   
     strictDeps = true;
   
     depsBuildBuild = [ pkg-config ];
   
  -  nativeBuildInputs = [ pkg-config ] ++ optionals waylandSupport [ wayland ];
  +  nativeBuildInputs = [ pkg-config ] ++ optionals waylandSupport [ wayland wayland-scanner ];
   
     propagatedBuildInputs = dlopenPropagatedBuildInputs;
   
  
positive.code: , waylandSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid
  , wayland
  , wayland-protocols
  , drmSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid
  , libdrm
  , mesa
  
negative.code: , audiofile
  , libiconv
  , withStatic ? false
  }:
  
  # NOTE: When editing this expression see if the same change applies to
  