Files
nixpkgs/pkgs/games/fteqw/generic.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

71 lines
1.6 KiB
Nix

{
lib,
fetchFromGitHub,
stdenv,
libopus,
xorg,
pname,
releaseFile ? pname,
buildFlags,
buildInputs,
nativeBuildInputs ? [ ],
postFixup ? "",
description,
...
}:
stdenv.mkDerivation {
inherit
pname
buildFlags
buildInputs
nativeBuildInputs
postFixup
;
version = "0-unstable-2025-06-25";
src = fetchFromGitHub {
owner = "fte-team";
repo = "fteqw";
rev = "41f35720eda2d1e54d039975db28f46d68a963cb";
hash = "sha256-g8dKNRHAZvNfCT3ciDSyKJVqjENml39k26NqkP7sQvA=";
};
makeFlags = [
"PKGCONFIG=$(PKG_CONFIG)"
"-C"
"engine"
];
enableParallelBuilding = true;
postPatch = ''
substituteInPlace ./engine/Makefile \
--replace "I/usr/include/opus" "I${libopus.dev}/include/opus"
substituteInPlace ./engine/gl/gl_vidlinuxglx.c \
--replace 'Sys_LoadLibrary("libXrandr"' 'Sys_LoadLibrary("${xorg.libXrandr}/lib/libXrandr.so"'
'';
installPhase = ''
runHook preInstall
install -Dm755 engine/release/${releaseFile} $out/bin/${pname}
runHook postInstall
'';
meta = with lib; {
inherit description;
homepage = "https://fteqw.org";
longDescription = ''
FTE is a game engine baed on QuakeWorld able to
play games such as Quake 1, 2, 3, and Hexen 2.
It includes various features such as extended map
limits, vulkan and OpenGL renderers, a dedicated
server, and fteqcc, for easier QuakeC development
'';
maintainers = with maintainers; [ necrophcodr ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}