diff options
author | ckie <git-525ff67@ckie.dev> | 2021-12-05 21:58:25 +0200 |
---|---|---|
committer | ckie <git-525ff67@ckie.dev> | 2021-12-05 21:58:25 +0200 |
commit | f4a5fd46823cba2140eb7a12bcd188106890b017 (patch) | |
tree | 12d6166fb1c72a46946d1194e9696444128b8d3c /pkgs/applications/graphics/xrgears | |
parent | 3e610e1d39a0b06ebb0eab6265bc4317a1eae38c (diff) |
xrgears: add LD_LIBRARY_PATH wrapper to unbreak
Diffstat (limited to 'pkgs/applications/graphics/xrgears')
-rw-r--r-- | pkgs/applications/graphics/xrgears/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/xrgears/default.nix b/pkgs/applications/graphics/xrgears/default.nix index 20e01a1701dad..72010e26f594a 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"; |