6 , directx-shader-compiler
18 stdenv.mkDerivation rec {
19 pname = "rbdoom-3-bfg";
22 src = fetchFromGitHub {
23 owner = "RobertBeckebans";
26 hash = "sha256-bjjeTdbQDWTibSrIWhCnr6F0Ef17efLgWGQAAwezjUw=";
27 fetchSubmodules = true;
30 patches = fetchpatch {
31 name = "replace-HLSL-ternary-operators.patch";
32 url = "https://github.com/RobertBeckebans/RBDOOM-3-BFG/commit/feffa4a4dd9a2a5f3c608f720cde41bea37797d3.patch";
33 hash = "sha256-aR1eoWZL3+ps7P7yFXFvGsMFxpUSBDiyBsja/ISin4I=";
37 substituteInPlace neo/extern/nvrhi/tools/shaderCompiler/CMakeLists.txt \
38 --replace "AppleClang" "Clang"
43 directx-shader-compiler
62 "-DUSE_SYSTEM_LIBGLEW=ON"
63 "-DUSE_SYSTEM_LIBPNG=ON"
64 "-DUSE_SYSTEM_LIBJPEG=ON"
65 "-DUSE_SYSTEM_RAPIDJSON=ON"
66 "-DUSE_SYSTEM_ZLIB=ON"
69 # it caused build failure
70 hardeningDisable = [ "fortify3" ];
76 install RBDoom3BFG $out/bin/RBDoom3BFG
82 homepage = "https://github.com/RobertBeckebans/RBDOOM-3-BFG";
83 description = "Doom 3 BFG Edition with modern engine features";
84 mainProgram = "RBDoom3BFG";
85 license = licenses.gpl3Plus;
86 maintainers = with maintainers; [ Zaechus ];
87 platforms = platforms.unix;