2013-04-02 21:52:50 +01:00
|
|
|
{stdenv, fetchurl, unzip, cmake, SDL, mesa, zlib, libjpeg, libogg, libvorbis
|
2015-05-16 03:00:54 +01:00
|
|
|
, openal, curl }:
|
2013-04-01 16:56:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
hash = "92a41322f4aa8bd45395d8088721c9a2bf43c79b";
|
|
|
|
name = "dhewm3-20130113-${hash}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/dhewm/dhewm3/zipball/${hash}";
|
|
|
|
sha256 = "0c17k60xhimpqi1xi9s1l7jbc97pqjnk4lgwyjb0agc3dkr73zwd";
|
|
|
|
};
|
|
|
|
|
2013-04-04 22:06:40 +01:00
|
|
|
# Add mesa linking
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's/\<idlib\()\?\)$/idlib GL\1/' CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
2013-04-01 16:56:34 +01:00
|
|
|
unpackPhase = ''
|
|
|
|
unzip ${src}
|
|
|
|
cd */neo
|
|
|
|
'';
|
|
|
|
|
2015-05-16 03:00:54 +01:00
|
|
|
buildInputs = [ unzip cmake SDL mesa zlib libjpeg libogg libvorbis openal
|
2013-04-01 16:56:34 +01:00
|
|
|
curl ];
|
|
|
|
|
2013-04-04 21:25:02 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-04-01 16:56:34 +01:00
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/dhewm/dhewm3;
|
|
|
|
description = "Doom 3 port to SDL";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2013-04-01 16:56:34 +01:00
|
|
|
};
|
|
|
|
|
2013-04-04 22:06:40 +01:00
|
|
|
}
|