mangohud: use --replace-fail

This commit is contained in:
Gliczy
2025-03-05 15:45:56 +01:00
committed by Bjørn Forsman
parent 91a4324c2c
commit 4f5cd11212
+1 -1
View File
@@ -217,7 +217,7 @@ stdenv.mkDerivation (finalAttrs: {
# layer under the same name.
lib.optionalString (layerPlatform != null) ''
substituteInPlace $out/share/vulkan/implicit_layer.d/MangoHud.${layerPlatform}.json \
--replace "VK_LAYER_MANGOHUD_overlay" "VK_LAYER_MANGOHUD_overlay_${toString stdenv.hostPlatform.parsed.cpu.bits}"
--replace-fail "VK_LAYER_MANGOHUD_overlay" "VK_LAYER_MANGOHUD_overlay_${toString stdenv.hostPlatform.parsed.cpu.bits}"
''
+ ''
# Add OpenGL driver and libXNVCtrl paths to RUNPATH to support NVIDIA cards