From f4a5fd46823cba2140eb7a12bcd188106890b017 Mon Sep 17 00:00:00 2001 From: ckie Date: Sun, 5 Dec 2021 21:58:25 +0200 Subject: [PATCH] xrgears: add LD_LIBRARY_PATH wrapper to unbreak --- pkgs/applications/graphics/xrgears/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/graphics/xrgears/default.nix b/pkgs/applications/graphics/xrgears/default.nix index 20e01a1701da..72010e26f594 100644 --- a/pkgs/applications/graphics/xrgears/default.nix +++ b/pkgs/applications/graphics/xrgears/default.nix @@ -9,6 +9,9 @@ , vulkan-headers , vulkan-loader , xxd +, SDL2 +, makeWrapper +, libGL }: stdenv.mkDerivation rec { @@ -29,6 +32,7 @@ stdenv.mkDerivation rec { ninja pkg-config xxd + makeWrapper ]; buildInputs = [ @@ -38,6 +42,11 @@ stdenv.mkDerivation rec { vulkan-loader ]; + fixupPhase = '' + wrapProgram $out/bin/xrgears \ + --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ SDL2 libGL ]} + ''; + meta = with lib; { homepage = "https://gitlab.freedesktop.org/monado/demos/xrgears"; description = "An OpenXR example using Vulkan for rendering";