anchor.diff:      "-DWAYLAND_SCANNERPP=${buildPackages.waylandpp}/bin/wayland-scanner++"
     ];
   
  -  nativeBuildInputs = [ cmake pkg-config ] ++ optionals docSupport [ doxygen graphviz ];
  +  # Complains about not being able to find the fontconfig config file otherwise
  +  FONTCONFIG_FILE = lib.optional docSupport (makeFontsConf { fontDirectories = [ ]; });
  +
  +  nativeBuildInputs = [ cmake pkg-config ] ++ lib.optionals docSupport [ doxygen graphviz ];
     buildInputs = [ pugixml wayland libGL libffi ];
   
  -  outputs = [ "bin" "dev" "lib" "out" ] ++ optionals docSupport [ "doc" "devman" ];
  +  outputs = [ "bin" "dev" "lib" "out" ] ++ lib.optionals docSupport [ "doc" "devman" ];
  +
  +  # Resolves the warning "Fontconfig error: No writable cache directories"
  +  preBuild = ''
  +    export XDG_CACHE_HOME="$(mktemp -d)"
  +  '';
   
     meta = with lib; {
       description = "Wayland C++ binding";
       homepage = "https://github.com/NilsBrause/waylandpp/";
  -    license = with licenses; [ bsd2 hpnd ];
  -    maintainers = with maintainers; [ minijackson ];
  +    license = with lib.licenses; [ bsd2 hpnd ];
  +    maintainers = with lib.maintainers; [ minijackson ];
     };
   }
  
positive.code: { lib, stdenv
  , fetchFromGitHub
  , cmake
  , pkg-config
  , pugixml
  , wayland
  
negative.code: , libffi
  , buildPackages
  , docSupport ? true
  , doxygen
  , graphviz
  }:
  
  stdenv.mkDerivation rec {
    pname = "waylandpp";
    version = "1.0.0";
  
    src = fetchFromGitHub {
      owner = "NilsBrause";
      repo = pname;
      rev = version;
      hash = "sha256-Dw2RnLLyhykikHps1in+euHksO+ERbATbfmbUFOJklg=";
    };
  
    cmakeFlags = [
  