about summary refs log tree commit diff
path: root/pkgs/games/quakespasm
diff options
context:
space:
mode:
authorMathäus Sander <mathaeussander@outlook.de>2017-04-23 22:22:44 +0200
committerMathäus Sander <mathaeussander@outlook.de>2017-04-23 22:22:44 +0200
commitbbf114cf228bab9eaca7bf0d1562b4f04a76c5ed (patch)
treed447437410f7068b739c68bdeb3d06baf15e4a53 /pkgs/games/quakespasm
parente30b5c198ad375a33741957f462b0891dec829f6 (diff)
quakespasm: init at 0.92.1
Diffstat (limited to 'pkgs/games/quakespasm')
-rw-r--r--pkgs/games/quakespasm/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/games/quakespasm/default.nix b/pkgs/games/quakespasm/default.nix
new file mode 100644
index 0000000000000..4a90e57853ed7
--- /dev/null
+++ b/pkgs/games/quakespasm/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, SDL, fetchurl, gzip, libvorbis, libmad }:
+stdenv.mkDerivation rec {
+  name = "quakespasm-${version}";
+  majorVersion = "0.92";
+  version = "${majorVersion}.1";
+  platform = "amd64";
+
+  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;
+  
+  platforms = ["x86_64-linux"];
+
+  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 = platforms.linux;
+  };
+}