From eefb3eb9a4cb639d8598535fc2fb44c392dd60a0 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Thu, 13 Apr 2023 22:18:11 -0400 Subject: [PATCH] mangohud: switch back to using system spdlog The issue that required us to use the static subproject version has been fixed: https://github.com/ValveSoftware/steam-runtime/issues/511 --- pkgs/tools/graphics/mangohud/default.nix | 26 +++--------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/pkgs/tools/graphics/mangohud/default.nix b/pkgs/tools/graphics/mangohud/default.nix index d0c4c088ddd3..b82cf971482c 100644 --- a/pkgs/tools/graphics/mangohud/default.nix +++ b/pkgs/tools/graphics/mangohud/default.nix @@ -22,6 +22,7 @@ , pkg-config , unzip , libXNVCtrl +, spdlog , wayland , glew , glfw @@ -47,27 +48,6 @@ let }; }; - # Derived from subprojects/spdlog.wrap - # - # NOTE: We only statically link spdlog due to a bug in pressure-vessel: - # https://github.com/ValveSoftware/steam-runtime/issues/511 - # - # Once this fix is released upstream, we should switch back to using - # the system provided spdlog - spdlog = rec { - version = "1.8.5"; - src = fetchFromGitHub { - owner = "gabime"; - repo = "spdlog"; - rev = "refs/tags/v${version}"; - sha256 = "sha256-D29jvDZQhPscaOHlrzGN1s7/mXlcsovjbqYpXd7OM50="; - }; - patch = fetchurl { - url = "https://wrapdb.mesonbuild.com/v2/spdlog_${version}-1/get_patch"; - sha256 = "sha256-PDjyddV5KxKGORECWUMp6YsXc3kks0T5gxKrCZKbdL4="; - }; - }; - # Derived from subprojects/vulkan-headers.wrap vulkan-headers = rec { version = "1.2.158"; @@ -101,7 +81,6 @@ stdenv.mkDerivation (finalAttrs: { postUnpack = ''( cd "$sourceRoot/subprojects" cp -R --no-preserve=mode,ownership ${imgui.src} imgui-${imgui.version} - cp -R --no-preserve=mode,ownership ${spdlog.src} spdlog-${spdlog.version} cp -R --no-preserve=mode,ownership ${vulkan-headers.src} Vulkan-Headers-${vulkan-headers.version} )''; @@ -142,12 +121,12 @@ stdenv.mkDerivation (finalAttrs: { postPatch = ''( cd subprojects unzip ${imgui.patch} - unzip ${spdlog.patch} unzip ${vulkan-headers.patch} )''; mesonFlags = [ "-Dwith_wayland=enabled" + "-Duse_system_spdlog=enabled" ] ++ lib.optionals gamescopeSupport [ "-Dmangoapp_layer=true" "-Dmangoapp=true" @@ -169,6 +148,7 @@ stdenv.mkDerivation (finalAttrs: { dbus libX11 libXNVCtrl + spdlog wayland ] ++ lib.optionals gamescopeSupport [ glew