about summary refs log tree commit diff
path: root/pkgs/games/doom-ports
diff options
context:
space:
mode:
authorAnna Lee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2023-11-13 17:48:31 -0800
committerAnna Lee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2023-11-13 21:40:05 -0800
commit70ed962531e40d3cde42bd8c66a8d58c1799e1ee (patch)
tree4ef0551547458cf9380f96f1553b177d6055047a /pkgs/games/doom-ports
parent7eddbf56907e20b14a2996597cfc6619d1c18aed (diff)
rbdoom-3-bfg: apply upstream patch; fix build
apply https://github.com/RobertBeckebans/RBDOOM-3-BFG/commit/feffa4a4dd9a2a5f3c608f720cde41bea37797d3 to fix shader compile error
Diffstat (limited to 'pkgs/games/doom-ports')
-rw-r--r--pkgs/games/doom-ports/rbdoom-3-bfg/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/games/doom-ports/rbdoom-3-bfg/default.nix b/pkgs/games/doom-ports/rbdoom-3-bfg/default.nix
index c17adb72171f4..7ec57b7151380 100644
--- a/pkgs/games/doom-ports/rbdoom-3-bfg/default.nix
+++ b/pkgs/games/doom-ports/rbdoom-3-bfg/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, fetchpatch
 , cmake
 , directx-shader-compiler
 , libGLU
@@ -26,6 +27,12 @@ stdenv.mkDerivation rec {
     fetchSubmodules = true;
   };
 
+  patches = fetchpatch {
+    name = "replace-HLSL-ternary-operators.patch";
+    url = "https://github.com/RobertBeckebans/RBDOOM-3-BFG/commit/feffa4a4dd9a2a5f3c608f720cde41bea37797d3.patch";
+    hash = "sha256-aR1eoWZL3+ps7P7yFXFvGsMFxpUSBDiyBsja/ISin4I=";
+  };
+
   postPatch = ''
     substituteInPlace neo/extern/nvrhi/tools/shaderCompiler/CMakeLists.txt \
       --replace "AppleClang" "Clang"