nixpkgs/pkgs/games/doom-ports/rbdoom-3-bfg/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.4 KiB
Nix
Raw Normal View History

2023-02-12 08:55:26 +01:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, directx-shader-compiler
, libGLU
, libpng
, libjpeg_turbo
, openal
, rapidjson
, SDL2
, vulkan-headers
, vulkan-loader
, zlib
}:
stdenv.mkDerivation rec {
pname = "rbdoom-3-bfg";
2023-04-29 19:05:08 +02:00
version = "1.5.0";
2023-02-12 08:55:26 +01:00
src = fetchFromGitHub {
owner = "RobertBeckebans";
repo = pname;
rev = "v${version}";
2023-04-29 19:05:08 +02:00
hash = "sha256-jO1+Evk17JUjvYl6QOVAn+pWwr/G8gWMae5CwMhgYZI=";
2023-02-12 08:55:26 +01:00
fetchSubmodules = true;
};
2023-04-29 19:05:08 +02:00
postPatch = ''
substituteInPlace neo/extern/nvrhi/tools/shaderCompiler/CMakeLists.txt \
--replace "AppleClang" "Clang"
'';
2023-02-12 08:55:26 +01:00
nativeBuildInputs = [
cmake
directx-shader-compiler
];
buildInputs = [
libGLU
libpng
libjpeg_turbo
openal
rapidjson
SDL2
vulkan-headers
vulkan-loader
zlib
];
cmakeDir = "../neo";
cmakeFlags = [
"-DFFMPEG=OFF"
"-DBINKDEC=ON"
"-DUSE_SYSTEM_LIBGLEW=ON"
"-DUSE_SYSTEM_LIBPNG=ON"
"-DUSE_SYSTEM_LIBJPEG=ON"
"-DUSE_SYSTEM_RAPIDJSON=ON"
"-DUSE_SYSTEM_ZLIB=ON"
];
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";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ Zaechus ];
platforms = platforms.unix;
};
}