about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/gamescope
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-09-15 19:16:39 +0200
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-09-17 12:21:42 -0300
commit8479c55bdef61e6ad2d1c194e66dc0a9ccddaa23 (patch)
tree362fa4004920339914d266c82ff9316ef0beb8b4 /pkgs/applications/window-managers/gamescope
parentc0f5f8be53757cf415be2f3387cc55567ae458c5 (diff)
gamescope: split vulkan layer into lib output
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'pkgs/applications/window-managers/gamescope')
-rw-r--r--pkgs/applications/window-managers/gamescope/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/window-managers/gamescope/default.nix b/pkgs/applications/window-managers/gamescope/default.nix
index f94ee4eb2a220..e9edd10b25394 100644
--- a/pkgs/applications/window-managers/gamescope/default.nix
+++ b/pkgs/applications/window-managers/gamescope/default.nix
@@ -106,6 +106,8 @@ stdenv.mkDerivation {
     libdisplay-info
   ];
 
+  outputs = [ "out" "lib" ];
+
   postUnpack = ''
     rm -rf source/subprojects/vkroots
     ln -s ${vkroots} source/subprojects/vkroots
@@ -114,7 +116,12 @@ stdenv.mkDerivation {
   # --debug-layers flag expects these in the path
   postInstall = ''
     wrapProgram "$out/bin/gamescope" \
-     --prefix PATH : ${with xorg; lib.makeBinPath [xprop xwininfo]}
+      --prefix PATH : ${with xorg; lib.makeBinPath [xprop xwininfo]}
+
+    # Install Vulkan layer in lib output
+    install -d $lib/share/vulkan
+    mv $out/share/vulkan/implicit_layer.d $lib/share/vulkan
+    rm -r $out/share/vulkan
   '';
 
   meta = with lib; {