From 8479c55bdef61e6ad2d1c194e66dc0a9ccddaa23 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Fri, 15 Sep 2023 19:16:39 +0200 Subject: [PATCH] gamescope: split vulkan layer into lib output Signed-off-by: Sefa Eyeoglu --- pkgs/applications/window-managers/gamescope/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/window-managers/gamescope/default.nix b/pkgs/applications/window-managers/gamescope/default.nix index f94ee4eb2a22..e9edd10b2539 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; {