2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, zlib
|
|
|
|
, libjpeg
|
|
|
|
, SDL2
|
|
|
|
, libvorbis
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "darkplaces";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "unstable-2022-05-10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DarkPlacesEngine";
|
|
|
|
repo = "darkplaces";
|
|
|
|
rev = "f16954a9d40168253ac5d9890dabcf7dbd266cd9";
|
|
|
|
hash = "sha256-5KsUcgHbuzFUE6LcclqI8VPSFbXZzBnxzOBB9Kf8krI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
libjpeg
|
|
|
|
SDL2
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildFlags = [ "release" ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -m755 darkplaces-sdl $out/bin/darkplaces
|
|
|
|
install -m755 darkplaces-dedicated $out/bin/darkplaces-dedicated
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
patchelf \
|
|
|
|
--add-needed ${libvorbis}/lib/libvorbisfile.so \
|
|
|
|
--add-needed ${libvorbis}/lib/libvorbis.so \
|
|
|
|
$out/bin/darkplaces
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.icculus.org/twilight/darkplaces/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Quake 1 engine implementation by LadyHavoc";
|
2022-08-21 13:32:41 +00:00
|
|
|
longDescription = ''
|
|
|
|
A game engine based on the Quake 1 engine by id Software.
|
|
|
|
It improves and builds upon the original 1996 engine by adding modern
|
|
|
|
rendering features, and expanding upon the engine's native game code
|
|
|
|
language QuakeC, as well as supporting additional map and model formats.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ necrophcodr ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|