Commit 4f5cd112 authored by Gliczy's avatar Gliczy Committed by Bjørn Forsman
Browse files

mangohud: use `--replace-fail`

parent 91a4324c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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