2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, SDL, fetchurl, gzip, libvorbis, libmad }:
|
2021-07-03 03:11:41 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "quakespasm";
|
|
|
|
majorVersion = "0.93";
|
2021-07-03 03:11:41 +00:00
|
|
|
version = "${majorVersion}.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/quakespasm/quakespasm-${version}.tgz";
|
2021-07-03 03:11:41 +00:00
|
|
|
sha256 = "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${pname}-${version}/Quake";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gzip SDL libvorbis libmad
|
|
|
|
];
|
|
|
|
|
|
|
|
buildFlags = [ "DO_USERDIRS=1" ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
substituteInPlace Makefile --replace "/usr/local/games" "$out/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An engine for iD software's Quake";
|
|
|
|
homepage = "http://quakespasm.sourceforge.net/";
|
|
|
|
longDescription = ''
|
|
|
|
QuakeSpasm is a modern, cross-platform Quake 1 engine based on FitzQuake.
|
|
|
|
It includes support for 64 bit CPUs and custom music playback, a new sound driver,
|
|
|
|
some graphical niceities, and numerous bug-fixes and other improvements.
|
|
|
|
Quakespasm utilizes either the SDL or SDL2 frameworks, so choose which one
|
|
|
|
works best for you. SDL is probably less buggy, but SDL2 has nicer features
|
|
|
|
and smoother mouse input - though no CD support.
|
|
|
|
'';
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ m3tti ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|