1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00
nixpkgs/pkgs/games/dhewm3/default.nix
Lluís Batlle i Rossell 3db052eb7a dhewm3: linking with mesa (for non-nvidia cards)
It was just doing a dlopen(libGL), so mesa wasn't in the rpath.
Now it is.
2013-04-04 23:07:23 +02:00

34 lines
787 B
Nix

{stdenv, fetchurl, unzip, cmake, SDL, mesa, 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";
};
# Add mesa linking
patchPhase = ''
sed -i 's/\<idlib\()\?\)$/idlib GL\1/' CMakeLists.txt
'';
unpackPhase = ''
unzip ${src}
cd */neo
'';
buildInputs = [ unzip cmake SDL mesa zlib libjpeg libogg libvorbis openalSoft
curl ];
enableParallelBuilding = true;
meta = {
homepage = https://github.com/dhewm/dhewm3;
description = "Doom 3 port to SDL";
license = "GPLv3";
};
}