13 , x11Support ? true, libxcb, libX11
14 , waylandSupport ? true, wayland, wayland-protocols
15 , useGbm ? true, mesa, udev
18 stdenv.mkDerivation rec {
22 src = fetchFromGitLab {
23 domain = "gitlab.freedesktop.org";
27 sha256 = "iY+dAgXutD/uDFocwd9QXjq502IOsk+3RQMA2S/CMV4=";
33 ] ++ lib.optionals (with stdenv.hostPlatform; isUnix && !isDarwin) [
35 ] ++ lib.optionals x11Support [
38 ] ++ lib.optionals waylandSupport [
41 ] ++ lib.optionals useGbm [
46 dontUseCmakeConfigure = true;
57 PKG_CONFIG_BASH_COMPLETION_COMPLETIONSDIR= "${placeholder "out"}/share/bash-completion/completions";
60 wrapProgram $out/bin/wflinfo \
61 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL libglvnd ]}
65 description = "A cross-platform C library that allows one to defer selection of an OpenGL API and window system until runtime";
66 homepage = "http://www.waffle-gl.org/";
67 license = licenses.bsd2;
68 platforms = platforms.mesaPlatforms;
69 maintainers = with maintainers; [ Flakebi ];