anchor.diff:      sha256 = "1yhy62vkbq8j8c9zaa6yzvn75cd99kfa8n2zfdwl80x019r711ww";
     };
   
  -  configureFlags = [
  -    (mkEnable (expat != null)     "scanner"       null)
  -    (mkEnable enableDocumentation "documentation" null)
  +  nativeBuildInputs = [ ]
  +    ++ optionals enableDocumentation [
  +      docbook_xsl
  +      doxygen
  +      graphviz
  +      libxslt
  +      xmlto
  +    ];
  +
  +  buildInputs = [
  +    expat
  +    libffi
     ];
   
  -  nativeBuildInputs = optionals enableDocumentation [
  -    docbook_xsl
  -    doxygen
  -    graphviz
  -    libxslt
  -    xmlto
  +  configureFlags = [
  +    "--enable-libraries"
  +    (enFlag "documentation" enableDocumentation null)
     ];
  -
  -  buildInputs = [ libffi expat ];
   
     passthru = {
       inherit version;
  
positive.code: { stdenv, fetchurl
  
  # Optional Dependencies
  , libffi ? null, docbook_xsl ? null, doxygen ? null, graphviz ? null, libxslt ? null, xmlto ? null
  , expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.8.0)
  
  # Extra Arguments
  , enableDocumentation ? false
  }:
  
  
  let
    inherit (stdenv.lib) mkEnable optionals;
  in
  
  # Require the optional to be enabled until upstream fixes or removes the configure flag
  assert expat != null;
  
  stdenv.mkDerivation rec {
    name = "wayland-${version}";
  
negative.code:     description = "Reference implementation of the wayland protocol";
      homepage = http://wayland.freedesktop.org/;
      license = licenses.mit;
      maintainers = with maintainers; [
        codyopel
        wkennington
      ];
      platforms = [
        "i686-linux"
        "x86_64-linux"
      ];
    };
  }
  