anchor.diff:    ];
   
     buildInputs = [
  -    libffi
       expat
       libxml2
  +  ] ++ lib.optionals withLibraries [
  +    libffi
     ] ++ lib.optionals withDocumentation [
       docbook_xsl
       docbook_xml_dtd_45
       docbook_xml_dtd_42
     ];
   
  -  meta = {
  +  meta = with lib; {
       description = "Core Wayland window system code and protocol";
       longDescription = ''
         Wayland is a project to define a protocol for a compositor to talk to its
  
positive.code: , libxml2
  , wayland
  , expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0)
  , withDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform
  , graphviz-nox
  , doxygen
  , libxslt
  
negative.code:       rendering).
      '';
      homepage = "https://wayland.freedesktop.org/";
      license = licenses.mit; # Expat version
      platforms = if withLibraries then platforms.linux else platforms.unix;
      maintainers = with maintainers; [ primeos codyopel ];
    };
  
    passthru.version = version;
  