Unverified Commit 229ee1db authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #267340 from a-n-n-a-l-e-e/rbdoom-3-fix-build

rbdoom-3-bfg: apply upstream patch; fix build
parents a2dbeea7 70ed9625
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
{ 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"