diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2017-05-07 10:03:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-07 10:03:42 +0200 |
commit | f79a5fc30d6611c672bb5863e8c653ec3cb76835 (patch) | |
tree | 478be924e925403622235ed791c305a8fc2c77b2 /pkgs | |
parent | 95534bc4eeb394bc89ddde704d5de201f99f46fd (diff) | |
parent | 15b98cb63421106ab285d1970b6b672ae2c7ff65 (diff) | |
download | nixlib-f79a5fc30d6611c672bb5863e8c653ec3cb76835.tar nixlib-f79a5fc30d6611c672bb5863e8c653ec3cb76835.tar.gz nixlib-f79a5fc30d6611c672bb5863e8c653ec3cb76835.tar.bz2 nixlib-f79a5fc30d6611c672bb5863e8c653ec3cb76835.tar.lz nixlib-f79a5fc30d6611c672bb5863e8c653ec3cb76835.tar.xz nixlib-f79a5fc30d6611c672bb5863e8c653ec3cb76835.tar.zst nixlib-f79a5fc30d6611c672bb5863e8c653ec3cb76835.zip |
Merge pull request #25160 from m3tti/quakespasm
Quakespasm: init at 0.92.1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/games/quakespasm/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/games/quakespasm/default.nix b/pkgs/games/quakespasm/default.nix new file mode 100644 index 000000000000..cd7787604c2e --- /dev/null +++ b/pkgs/games/quakespasm/default.nix @@ -0,0 +1,40 @@ +{ 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"; + + buildInputs = [ + gzip SDL libvorbis libmad + ]; + + preInstall = '' + mkdir -p "$out/bin" + substituteInPlace Makefile --replace "/usr/local/games" "$out/bin" + ''; + + enableParallelBuilding = true; + + meta = { + 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. + ''; + + platforms = stdenv.lib.platforms.linux; + maintainers = [ stdenv.lib.maintainers.m3tti ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6adbb5936a24..0431da86bb42 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17012,6 +17012,8 @@ with pkgs; quake3pointrelease = callPackage ../games/quake3/content/pointrelease.nix { }; + quakespasm = callPackage ../games/quakespasm { }; + ioquake3 = callPackage ../games/quake3/ioquake { }; quantumminigolf = callPackage ../games/quantumminigolf {}; |