3
0
Fork 0
forked from mirrors/nixpkgs

rbdoom-3-bfg: apply upstream patch; fix build

apply feffa4a4dd to fix shader compile error
This commit is contained in:
Anna Lee 2023-11-13 17:48:31 -08:00
parent 7eddbf5690
commit 70ed962531
No known key found for this signature in database

View file

@ -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"