2017-04-23 20:22:44 +00:00
|
|
|
{ stdenv, SDL, fetchurl, gzip, libvorbis, libmad }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "quakespasm-${version}";
|
|
|
|
majorVersion = "0.92";
|
|
|
|
version = "${majorVersion}.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/quakespasm/quakespasm-${version}.tgz";
|
|
|
|
sha256 = "0vhycjg97sn4cd85ph6qz68rplzrm4apijdkrlj9mycnqjv5l100";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${name}/Quake";
|
2018-04-14 20:51:41 +00:00
|
|
|
|
2017-04-23 20:22:44 +00:00
|
|
|
buildInputs = [
|
|
|
|
gzip SDL libvorbis libmad
|
|
|
|
];
|
|
|
|
|
2018-04-14 20:51:41 +00:00
|
|
|
buildFlags = [ "DO_USERDIRS=1" ];
|
|
|
|
|
2017-04-23 20:22:44 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
substituteInPlace Makefile --replace "/usr/local/games" "$out/bin"
|
|
|
|
'';
|
2017-04-23 20:24:15 +00:00
|
|
|
|
2017-04-23 20:22:44 +00:00
|
|
|
enableParallelBuilding = true;
|
2018-04-14 20:51:41 +00:00
|
|
|
|
2017-04-23 20:22:44 +00:00
|
|
|
meta = {
|
|
|
|
description = "An engine for iD software's Quake";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://quakespasm.sourceforge.net/;
|
2017-04-23 20:22:44 +00:00
|
|
|
longDescription = ''
|
|
|
|
QuakeSpasm is a modern, cross-platform Quake 1 engine based on FitzQuake.
|
2018-04-14 20:51:41 +00:00
|
|
|
It includes support for 64 bit CPUs and custom music playback, a new sound driver,
|
2017-04-23 20:22:44 +00:00
|
|
|
some graphical niceities, and numerous bug-fixes and other improvements.
|
2018-04-14 20:51:41 +00:00
|
|
|
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
|
2017-04-23 20:22:44 +00:00
|
|
|
and smoother mouse input - though no CD support.
|
|
|
|
'';
|
2018-04-14 20:51:41 +00:00
|
|
|
|
2017-04-23 20:24:15 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.m3tti ];
|
2017-04-23 20:22:44 +00:00
|
|
|
};
|
|
|
|
}
|