Skip to content

Commit

Permalink
index_camera_passthrough: link openxr again
Browse files Browse the repository at this point in the history
Signed-off-by: Sefa Eyeoglu <[email protected]>
  • Loading branch information
Scrumplex committed Sep 6, 2024
1 parent f95c12c commit 22c4b6e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkgs/index_camera_passthrough/default.nix
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,
Expand All @@ -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;

Expand All @@ -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; {
Expand Down

0 comments on commit 22c4b6e

Please sign in to comment.