16 stdenv.mkDerivation rec {
20 src = fetchFromGitHub {
24 hash = "sha256-Dw2RnLLyhykikHps1in+euHksO+ERbATbfmbUFOJklg=";
28 "-DCMAKE_INSTALL_DATADIR=${placeholder "dev"}"
29 ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
30 "-DWAYLAND_SCANNERPP=${buildPackages.waylandpp}/bin/wayland-scanner++"
33 # Complains about not being able to find the fontconfig config file otherwise
34 FONTCONFIG_FILE = lib.optional docSupport (makeFontsConf { fontDirectories = [ ]; });
36 nativeBuildInputs = [ cmake pkg-config ] ++ lib.optionals docSupport [ doxygen graphviz ];
37 buildInputs = [ pugixml wayland libGL libffi ];
39 outputs = [ "bin" "dev" "lib" "out" ] ++ lib.optionals docSupport [ "doc" "devman" ];
41 # Resolves the warning "Fontconfig error: No writable cache directories"
43 export XDG_CACHE_HOME="$(mktemp -d)"
47 description = "Wayland C++ binding";
48 homepage = "https://github.com/NilsBrause/waylandpp/";
49 license = with lib.licenses; [ bsd2 hpnd ];
50 maintainers = with lib.maintainers; [ minijackson ];