From 8f2662d4800fb55d175075cc5610b0baaae719d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carles=20Pag=C3=A8s?= Date: Mon, 1 Apr 2013 17:56:34 +0200 Subject: [PATCH] dhewm3: add current master from github This is a port of the Doom 3 source code released under GPL. Amongst others, this makes use of SDL to be multiplatform, and supports amd64. --- pkgs/games/dhewm3/default.nix | 27 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/games/dhewm3/default.nix diff --git a/pkgs/games/dhewm3/default.nix b/pkgs/games/dhewm3/default.nix new file mode 100644 index 000000000000..67e840d8862d --- /dev/null +++ b/pkgs/games/dhewm3/default.nix @@ -0,0 +1,27 @@ +{stdenv, fetchurl, unzip, cmake, SDL, zlib, libjpeg, libogg, libvorbis +, openalSoft , curl }: + +stdenv.mkDerivation rec { + hash = "92a41322f4aa8bd45395d8088721c9a2bf43c79b"; + name = "dhewm3-20130113-${hash}"; + src = fetchurl { + url = "https://github.com/dhewm/dhewm3/zipball/${hash}"; + sha256 = "0c17k60xhimpqi1xi9s1l7jbc97pqjnk4lgwyjb0agc3dkr73zwd"; + #name = "dhewm-dhewm3-92a4132.zip"; + }; + + unpackPhase = '' + unzip ${src} + cd */neo + ''; + + buildInputs = [ unzip cmake SDL zlib libjpeg libogg libvorbis openalSoft + curl ]; + + meta = { + homepage = https://github.com/dhewm/dhewm3; + description = "Doom 3 port to SDL"; + license = "GPLv3"; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 32646212ad77..f9e0043eeaec 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8202,6 +8202,8 @@ let crrcsim = callPackage ../games/crrcsim {}; + dhewm3 = callPackage ../games/dhewm3 {}; + drumkv1 = callPackage ../applications/audio/drumkv1 { }; dwarf_fortress = callPackage_i686 ../games/dwarf-fortress { };