Unverified Commit 9b37c184 authored by Sefa Eyeoglu's avatar Sefa Eyeoglu
Browse files

xrizer: link libGLX

parent 1c3a7eaf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  lib,
  libGL,
  libxkbcommon,
  nix-update-script,
  openxr-loader,
@@ -38,6 +39,8 @@ rustPlatform.buildRustPackage rec {
  postPatch = ''
    substituteInPlace Cargo.toml \
      --replace-fail 'features = ["static"]' 'features = ["linked"]'
    substituteInPlace src/graphics_backends/gl.rs \
      --replace-fail 'libGLX.so.0' '${lib.getLib libGL}/lib/libGLX.so.0'
  '';

  postInstall = ''