depot/third_party/nixpkgs/pkgs/by-name/op/opencomposite-helper/package.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

18 lines
514 B
Nix

{ writeShellApplication
, monado
, opencomposite
}:
writeShellApplication {
name = "opencomposite-helper";
text = ''
# Tell Proton to use OpenComposite instead of OpenVR
export VR_OVERRIDE=${opencomposite}/lib/opencomposite
# Help OpenComposite find the OpenXR runtime
export XR_RUNTIME_JSON=${monado}/share/openxr/1/openxr_monado.json
# Tell Steam Pressure Vessel to allow access to Monado
export PRESSURE_VESSEL_FILESYSTEMS_RW=$XDG_RUNTIME_DIR/monado_comp_ipc
exec "$@"
'';
}