summaryrefslogtreecommitdiffstats
path: root/pkgs/games/ezquake
diff options
context:
space:
mode:
authorEdward Tjörnhammar <ed@cflags.cc>2017-06-15 08:37:24 +0200
committerEdward Tjörnhammar <ed@cflags.cc>2017-06-15 08:37:24 +0200
commit0f9a2285b8abc4fd7fc9747dadfd3929d518c191 (patch)
tree2ab75b8682178ece100c9d092e351d48007914df /pkgs/games/ezquake
parent4ef8313bb65696b0a39739a799b8231e6b925a3d (diff)
ezquake: init at 3.0.1
Diffstat (limited to 'pkgs/games/ezquake')
-rw-r--r--pkgs/games/ezquake/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/games/ezquake/default.nix b/pkgs/games/ezquake/default.nix
new file mode 100644
index 000000000000..a1560fb19340
--- /dev/null
+++ b/pkgs/games/ezquake/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchFromGitHub, curl, expat
+, jansson, libpng, libjpeg, mesa, pcre
+, pkgconfig, SDL2, vimNox }:
+
+stdenv.mkDerivation rec {
+ name = pname + "-" + version;
+ pname = "ezquake";
+ version = "3.0.1";
+
+ src = fetchFromGitHub {
+ owner = "ezQuake";
+ repo = pname + "-source";
+ rev = "v" + version;
+ sha256 = "14wck0r64z5haacp7g7qb2qrbhff3x6jfjmn4268dyb9dl5663f2";
+ };
+
+ buildInputs = [
+ expat curl jansson libpng libjpeg mesa pcre pkgconfig SDL2 vimNox
+ ];
+
+ installPhase = with stdenv.lib; let
+ sys = last (splitString "-" stdenv.system);
+ arch = head (splitString "-" stdenv.system);
+ in ''
+ mkdir -p $out/bin
+ find .
+ mv ezquake-${sys}-${arch} $out/bin/ezquake
+ '';
+
+ meta = with stdenv.lib; {
+ homepage = "http://ezquake.github.io/";
+ description = "A modern QuakeWorld client focused on competitive online play.";
+ license = licenses.gpl2;
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ edwtjo ];
+ };
+}