-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
index_camera_passthrough: link openxr again
Signed-off-by: Sefa Eyeoglu <[email protected]>
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# SPDX-FileCopyrightText: 2023 Sefa Eyeoglu <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Sefa Eyeoglu <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
{ | ||
cmake, | ||
lib, | ||
openvr, | ||
openxr-loader, | ||
pkg-config, | ||
rustPlatform, | ||
|
@@ -18,11 +18,6 @@ rustPlatform.buildRustPackage { | |
pname = "index-camera-passthrough"; | ||
version = "0"; | ||
|
||
postPatch = '' | ||
substituteInPlace Cargo.toml \ | ||
--replace 'openxr = "0.17.1"' 'openxr = { version = "0.17.1", features = ["linked"] }' | ||
''; | ||
|
||
# src will be added by the source override | ||
inherit cargoLock; | ||
|
||
|
@@ -35,10 +30,16 @@ rustPlatform.buildRustPackage { | |
buildInputs = [ | ||
udev | ||
vulkan-loader | ||
openvr | ||
openxr-loader | ||
]; | ||
|
||
postPatch = '' | ||
substituteInPlace Cargo.toml \ | ||
--replace-fail \ | ||
'openxr = { version = "0.17.1", optional = true }' \ | ||
'openxr = { version = "0.17.1", optional = true, features = ["linked"] }' | ||
''; | ||
|
||
env.SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib"; | ||
|
||
meta = with lib; { | ||
|