about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/libraries/vulkan-loader/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/vulkan-loader/default.nix b/pkgs/development/libraries/vulkan-loader/default.nix
index 28da27372c49..35d3e11a20ed 100644
--- a/pkgs/development/libraries/vulkan-loader/default.nix
+++ b/pkgs/development/libraries/vulkan-loader/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchgit, fetchFromGitHub, cmake, pkgconfig, git, python3,
-  python3Packages, glslang, spirv-tools, x11, libxcb}:
+  python3Packages, glslang, spirv-tools, x11, libxcb, wayland }:
 
 assert stdenv.system == "x86_64-linux";
 
@@ -15,9 +15,13 @@ stdenv.mkDerivation rec {
   };
 
   buildInputs = [ cmake pkgconfig git python3 python3Packages.lxml
-                  glslang spirv-tools x11 libxcb
+                  glslang spirv-tools x11 libxcb wayland
                 ];
 
+  cmakeFlags = [
+    "-DBUILD_WSI_WAYLAND_SUPPORT=ON" # XLIB/XCB supported by default
+  ];
+
   installPhase = ''
     mkdir -p $out/lib
     mkdir -p $out/bin