about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/graphics/mangohud/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/graphics/mangohud/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/graphics/mangohud/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/graphics/mangohud/default.nix b/nixpkgs/pkgs/tools/graphics/mangohud/default.nix
index 877123951448..e64d2b457ba9 100644
--- a/nixpkgs/pkgs/tools/graphics/mangohud/default.nix
+++ b/nixpkgs/pkgs/tools/graphics/mangohud/default.nix
@@ -3,6 +3,7 @@
 , fetchFromGitLab
 , fetchFromGitHub
 , fetchurl
+, fetchpatch
 , substituteAll
 , coreutils
 , curl
@@ -123,6 +124,13 @@ stdenv.mkDerivation (finalAttrs: {
       libdbus = dbus.lib;
       inherit hwdata;
     })
+
+    # Pull gcc-13 build fix for nissing <cstdint>
+    (fetchpatch {
+      name = "gcc-13.patch";
+      url = "https://github.com/flightlessmango/MangoHud/commit/3f8f036ee8773ae1af23dd0848b6ab487b5ac7de.patch";
+      hash = "sha256-qbNywAXAStGiVZ1LA5qZyNp4n28iNUuE4N69zXv2gmM=";
+    })
   ];
 
   postPatch = ''