54 # Set as 'false' to build monado without service support, i.e. allow VR
55 # applications linking against libopenxr_monado.so to use OpenXR standalone
56 # instead of via the monado-service program. For more information see:
57 # https://gitlab.freedesktop.org/monado/monado/-/blob/master/doc/targets.md#xrt_feature_service-disabled
58 , serviceSupport ? true
61 stdenv.mkDerivation (finalAttrs: {
65 src = fetchFromGitLab {
66 domain = "gitlab.freedesktop.org";
69 rev = "refs/tags/v${finalAttrs.version}";
70 hash = "sha256-lFy0VvaLD4Oyu2TZJnaIWjuaJUZjGGDJS0VsRfIUpcc=";
82 (lib.cmakeBool "XRT_FEATURE_SERVICE" serviceSupport)
83 (lib.cmakeBool "XRT_OPENXR_INSTALL_ABSOLUTE_RUNTIME_PATH" true)
84 (lib.cmakeBool "XRT_HAVE_TRACY" true)
85 (lib.cmakeBool "XRT_FEATURE_TRACING" true)
86 (lib.cmakeBool "XRT_HAVE_STEAM" true)
134 # known disabled drivers/features:
135 # - DRIVER_DEPTHAI - Needs depthai-core https://github.com/luxonis/depthai-core (See https://github.com/NixOS/nixpkgs/issues/292618)
136 # - DRIVER_ILLIXR - needs ILLIXR headers https://github.com/ILLIXR/ILLIXR (See https://github.com/NixOS/nixpkgs/issues/292661)
137 # - DRIVER_ULV2 - Needs proprietary Leapmotion SDK https://api.leapmotion.com/documentation/v2/unity/devguide/Leap_SDK_Overview.html (See https://github.com/NixOS/nixpkgs/issues/292624)
138 # - DRIVER_ULV5 - Needs proprietary Leapmotion SDK https://api.leapmotion.com/documentation/v2/unity/devguide/Leap_SDK_Overview.html (See https://github.com/NixOS/nixpkgs/issues/292624)
140 # Help openxr-loader find this runtime
141 setupHook = writeText "setup-hook" ''
142 export XDG_CONFIG_DIRS=@out@/etc/xdg''${XDG_CONFIG_DIRS:+:''${XDG_CONFIG_DIRS}}
146 updateScript = nix-update-script { };
147 tests.basic-service = nixosTests.monado;
151 description = "Open source XR runtime";
152 homepage = "https://monado.freedesktop.org/";
153 license = licenses.boost;
154 maintainers = with maintainers; [ Scrumplex expipiplus1 prusnak ];
155 platforms = platforms.linux;
156 mainProgram = "monado-cli";