anchor.diff:    configureFlags = [
       # Add FHS paths for non-NixOS applications.
       "--with-drivers-path=${mesa.drivers.driverLink}/lib/dri:/usr/lib/dri:/usr/lib32/dri"
  +    "ac_cv_path_WAYLAND_SCANNER=${buildPackages.wayland}/bin/wayland-scanner"
     ] ++ lib.optionals (!minimal) [ "--enable-glx" ];
   
     installFlags = [
  
positive.code: , libXext, libdrm, libXfixes, wayland, libffi, libX11
  , libGL, mesa
  , minimal ? false, libva-minimal
  }:
  
  stdenv.mkDerivation rec {
  
negative.code: 
    outputs = [ "dev" "out" ];
  
    nativeBuildInputs = [ autoreconfHook pkgconfig wayland ];
  
    buildInputs = [ libdrm ]
      ++ lib.optionals (!minimal) [ libva-minimal libX11 libXext libXfixes wayland libffi libGL ];
  