fix(nix): wrap executable to include correct XKB_CONFIG_ROOT variable

This commit is contained in:
nervyalloy5
2025-05-22 17:02:15 -04:00
parent b5dcffd7c0
commit 08c7a5efea

View File

@@ -22,6 +22,7 @@
, stdenv
, lib
, openxr-loader
, makeWrapper
}:
rustPlatform.buildRustPackage rec {
@@ -78,7 +79,8 @@ rustPlatform.buildRustPackage rec {
--set-rpath "${libPath}" \
$sk/sk_gpu/tools/linux_x64/skshaderc
'';
nativeBuildInputs = [ cmake pkg-config llvmPackages.libcxxClang ];
nativeBuildInputs = [ cmake pkg-config llvmPackages.libcxxClang makeWrapper ];
buildInputs = [
libGL
mesa
@@ -94,4 +96,9 @@ rustPlatform.buildRustPackage rec {
libgbm
];
LIBCLANG_PATH = "${libclang.lib}/lib";
postFixup = ''
wrapProgram $out/bin/stardust-xr-server \
--set XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb"
'';
}