2021-11-10 22:21:47 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2023-08-19 06:47:53 +02:00
|
|
|
, which
|
|
|
|
, copyDesktopItems
|
|
|
|
, makeBinaryWrapper
|
2021-11-10 22:21:47 +01:00
|
|
|
, SDL2
|
|
|
|
, libGL
|
2023-08-19 06:47:53 +02:00
|
|
|
, openal
|
2021-11-10 22:21:47 +01:00
|
|
|
, curl
|
|
|
|
, speex
|
|
|
|
, opusfile
|
|
|
|
, libogg
|
|
|
|
, libvorbis
|
|
|
|
, libjpeg
|
2023-08-19 06:47:53 +02:00
|
|
|
, makeDesktopItem
|
2021-11-10 22:21:47 +01:00
|
|
|
, freetype
|
2023-08-21 21:59:55 +02:00
|
|
|
, mumble
|
2016-01-04 13:23:47 +01:00
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2021-11-10 22:21:47 +01:00
|
|
|
pname = "ioquake3";
|
2023-08-19 06:47:53 +02:00
|
|
|
version = "unstable-2023-08-13";
|
2016-01-04 13:23:47 +01:00
|
|
|
|
2016-03-03 13:13:26 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ioquake";
|
|
|
|
repo = "ioq3";
|
2023-08-19 06:47:53 +02:00
|
|
|
rev = "ee950eb7b0e41437cc23a9943254c958da8a61ab";
|
|
|
|
sha256 = "sha256-NfhInwrtw85i2mnv7EtBrrpNaslaQaVhLNlK0I9aYto=";
|
2016-01-04 13:23:47 +01:00
|
|
|
};
|
|
|
|
|
2023-08-19 06:47:53 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
copyDesktopItems
|
|
|
|
makeBinaryWrapper
|
|
|
|
pkg-config
|
|
|
|
which
|
|
|
|
];
|
|
|
|
|
2018-02-25 18:15:27 +01:00
|
|
|
buildInputs = [
|
2021-11-10 22:21:47 +01:00
|
|
|
SDL2
|
|
|
|
libGL
|
2023-08-19 06:47:53 +02:00
|
|
|
openal
|
2021-11-10 22:21:47 +01:00
|
|
|
curl
|
|
|
|
speex
|
|
|
|
opusfile
|
|
|
|
libogg
|
|
|
|
libvorbis
|
|
|
|
libjpeg
|
|
|
|
freetype
|
2023-08-21 21:59:55 +02:00
|
|
|
mumble
|
2018-02-25 18:15:27 +01:00
|
|
|
];
|
2016-01-04 13:23:47 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-08-21 21:59:55 +02:00
|
|
|
preConfigure = ''
|
|
|
|
cp ${./Makefile.local} ./Makefile.local
|
|
|
|
'';
|
2016-01-04 13:23:47 +01:00
|
|
|
|
|
|
|
installTargets = [ "copyfiles" ];
|
|
|
|
|
2023-08-19 06:47:53 +02:00
|
|
|
installFlags = [ "COPYDIR=$(out)/share/ioquake3" ];
|
2016-01-04 13:23:47 +01:00
|
|
|
|
2023-08-19 06:47:53 +02:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 misc/quake3.svg $out/share/icons/hicolor/scalable/apps/ioquake3.svg
|
|
|
|
|
|
|
|
makeWrapper $out/share/ioquake3/ioquake3.* $out/bin/ioquake3
|
|
|
|
makeWrapper $out/share/ioquake3/ioq3ded.* $out/bin/ioq3ded
|
2016-01-04 13:23:47 +01:00
|
|
|
'';
|
|
|
|
|
2023-08-19 06:47:53 +02:00
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = "IOQuake3";
|
|
|
|
exec = "ioquake3";
|
|
|
|
icon = "ioquake3";
|
|
|
|
comment = "A fast-paced 3D first-person shooter, a community effort to continue supporting/developing id's Quake III Arena";
|
|
|
|
desktopName = "ioquake3";
|
|
|
|
categories = [ "Game" "ActionGame" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://ioquake3.org/";
|
2023-08-19 06:47:53 +02:00
|
|
|
description = "A fast-paced 3D first-person shooter, a community effort to continue supporting/developing id's Quake III Arena";
|
2023-08-14 18:15:00 +02:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2023-08-19 06:47:53 +02:00
|
|
|
mainProgram = "ioquake3";
|
|
|
|
maintainers = with lib.maintainers; [ abbradar drupol eelco rvolosatovs ];
|
|
|
|
platforms = lib.platforms.linux;
|
2016-01-04 13:23:47 +01:00
|
|
|
};
|
|
|
|
}
|