25 openarena-maps = fetchzip {
26 name = "openarena-maps";
27 url = "https://download.tuxfamily.org/openarena/rel/088/openarena-0.8.8.zip";
28 hash = "sha256-Rup1n14k9sKcyVFYzFqPYV+BEBCnUNwpnFsnyGrhl20=";
31 stdenv.mkDerivation (finalAttrs: {
33 version = "unstable-2023-03-02";
35 src = fetchFromGitHub {
36 name = "openarena-source";
39 rev = "075cb860a4d2bc43e75e5f506eba7da877708aba";
40 hash = "sha256-ofQKQyS3ti5TSN+zqwPFYuJiB9kvdER6zTWn8yrOpQU=";
44 # Fix Makefile `copyFiles` target
45 # Related upstream issue: https://github.com/OpenArena/engine/issues/83
47 url = "https://github.com/OpenArena/engine/commit/f2b424bd332e90a1e2592edd21c62bdb8cd05214.patch";
48 hash = "sha256-legiXLtZAeG2t1esiBa37qkAgxPJVM7JLhjpxGUmWCo=";
72 enableParallelBuilding = true;
75 cp ${./Makefile.local} ./Makefile.local
78 installTargets = [ "copyfiles" ];
79 installFlags = [ "COPYDIR=$(out)/share/openarena" ];
82 mkdir -p $out/share/openarena
86 install -Dm644 misc/quake3.svg $out/share/icons/hicolor/scalable/apps/openarena.svg
88 makeWrapper $out/share/openarena/openarena.* $out/bin/openarena
89 makeWrapper $out/share/openarena/oa_ded.* $out/bin/oa_ded
91 ln -s ${openarena-maps}/baseoa $out/share/openarena/baseoa
92 ln -s ${openarena-maps}/missionpack $out/share/openarena/missionpack
100 comment = "A fast-paced 3D first-person shooter, similar to id Software Inc.'s Quake III Arena";
101 desktopName = "OpenArena";
102 categories = [ "Game" "ActionGame" ];
106 passthru.tests = { inherit (nixosTests) openarena; };
109 description = "Fast-paced 3D first-person shooter, similar to id Software Inc.'s Quake III Arena";
110 homepage = "http://openarena.ws/";
111 license = lib.licenses.gpl2Plus;
112 mainProgram = "openarena";
113 maintainers = with lib.maintainers; [ drupol wyvie ];
114 platforms = lib.platforms.linux;