anchor.diff:      docbook_xml_dtd_42
     ];
   
  +  postFixup = ''
  +    # The pkg-config file is required for cross-compilation:
  +    mkdir -p $bin/lib/pkgconfig/
  +    cat <<EOF > $bin/lib/pkgconfig/wayland-scanner.pc
  +    wayland_scanner=$bin/bin/wayland-scanner
  +
  +    Name: Wayland Scanner
  +    Description: Wayland scanner
  +    Version: ${version}
  +    EOF
  +  '';
  +
     meta = with lib; {
       description = "Core Wayland window system code and protocol";
       longDescription = ''
  
positive.code: , meson
  , pkg-config
  , ninja
  , wayland
  , expat
  , libxml2
  , withLibraries ? stdenv.isLinux
  
negative.code:     pkg-config
      ninja
    ] ++ lib.optionals isCross [
      wayland-scanner
    ] ++ lib.optionals withDocumentation [
      (graphviz-nox.override { pango = null; }) # To avoid an infinite recursion
      doxygen
  