nixpkgs/pkgs/games/quakespasm/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2021-01-15 04:31:39 +00:00
{ lib, stdenv, SDL, fetchurl, gzip, libvorbis, libmad }:
2017-04-23 21:22:44 +01:00
stdenv.mkDerivation rec {
pname = "quakespasm";
2018-08-07 06:01:07 +01:00
majorVersion = "0.93";
2017-04-23 21:22:44 +01:00
version = "${majorVersion}.1";
src = fetchurl {
url = "mirror://sourceforge/quakespasm/quakespasm-${version}.tgz";
2018-08-07 06:01:07 +01:00
sha256 = "1bimv18f6rzhyjz78yvw2vqr5n0kdqbcqmq7cb3m951xgsxfcgpd";
2017-04-23 21:22:44 +01:00
};
sourceRoot = "${pname}-${version}/Quake";
2017-04-23 21:22:44 +01:00
buildInputs = [
gzip SDL libvorbis libmad
];
buildFlags = [ "DO_USERDIRS=1" ];
2017-04-23 21:22:44 +01:00
preInstall = ''
mkdir -p "$out/bin"
substituteInPlace Makefile --replace "/usr/local/games" "$out/bin"
'';
2017-04-23 21:24:15 +01:00
2017-04-23 21:22:44 +01:00
enableParallelBuilding = true;
2017-04-23 21:22:44 +01:00
meta = {
description = "An engine for iD software's Quake";
homepage = "http://quakespasm.sourceforge.net/";
2017-04-23 21:22:44 +01:00
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,
2017-04-23 21:22:44 +01:00
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
2017-04-23 21:22:44 +01:00
and smoother mouse input - though no CD support.
'';
2021-01-15 04:31:39 +00:00
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.m3tti ];
2017-04-23 21:22:44 +01:00
};
}