Commit 8479c55b authored by Sefa Eyeoglu's avatar Sefa Eyeoglu Committed by Anderson Torres
Browse files

gamescope: split vulkan layer into lib output

parent c0f5f8be
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -106,6 +106,8 @@ stdenv.mkDerivation {
    libdisplay-info
  ];

  outputs = [ "out" "lib" ];

  postUnpack = ''
    rm -rf source/subprojects/vkroots
    ln -s ${vkroots} source/subprojects/vkroots
@@ -115,6 +117,11 @@ stdenv.mkDerivation {
  postInstall = ''
    wrapProgram "$out/bin/gamescope" \
      --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; {