monado: backport reproducibility fix

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-11-05 21:19:11 +01:00
parent 38ed0b172a
commit cf27301dc5
No known key found for this signature in database
GPG Key ID: E13DFD4B47127951

View File

@ -10,6 +10,7 @@
, doxygen
, eigen
, elfutils
, fetchpatch2
, glslang
, gst-plugins-base
, gstreamer
@ -141,6 +142,16 @@ stdenv.mkDerivation (finalAttrs: {
# - 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)
# - 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)
patches = [
# Remove this patch on the next update
# https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2338
(fetchpatch2 {
name = "improve-reproducibility.patch";
url = "https://gitlab.freedesktop.org/monado/monado/-/commit/9819fb6dd61d2af5b2d993ed37b976760002b055.patch";
hash = "sha256-qpTF1Q64jl8ZnJzMtflrpHLahCqfde2DXA9/Avlc18I=";
})
];
# Help openxr-loader find this runtime
setupHook = writeText "setup-hook" ''
export XDG_CONFIG_DIRS=@out@/etc/xdg''${XDG_CONFIG_DIRS:+:''${XDG_CONFIG_DIRS}}