Files
nixpkgs/pkgs/by-name/rb/rbdoom-3-bfg/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

79 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
directx-shader-compiler,
ispc,
ncurses,
openal,
rapidjson,
SDL2,
vulkan-headers,
vulkan-loader,
zlib,
}:
stdenv.mkDerivation rec {
pname = "rbdoom-3-bfg";
version = "1.6.0";
src = fetchFromGitHub {
owner = "RobertBeckebans";
repo = "rbdoom-3-bfg";
tag = "v${version}";
hash = "sha256-9BZEFO+e5IG6hv9+QI9OJecQ84rLTWBDz4k0GU6SeDE=";
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace neo/extern/nvrhi/tools/shaderCompiler/CMakeLists.txt \
--replace "AppleClang" "Clang"
'';
nativeBuildInputs = [
cmake
directx-shader-compiler
ispc
];
buildInputs = [
ncurses
openal
rapidjson
SDL2
vulkan-headers
vulkan-loader
zlib
];
cmakeDir = "../neo";
cmakeFlags = [
"-DFFMPEG=OFF"
"-DBINKDEC=ON"
"-DUSE_SYSTEM_RAPIDJSON=ON"
"-DUSE_SYSTEM_ZLIB=ON"
];
# it caused build failure
hardeningDisable = [ "fortify3" ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install RBDoom3BFG $out/bin/RBDoom3BFG
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/RobertBeckebans/RBDOOM-3-BFG";
description = "Doom 3 BFG Edition with modern engine features";
mainProgram = "RBDoom3BFG";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ Zaechus ];
platforms = platforms.unix;
};
}