Update GLEW

svn path=/nixpkgs/trunk/; revision=31867
This commit is contained in:
Michael Raskin 2012-01-26 18:04:02 +00:00
parent 4d266a5f56
commit 9f2be8d6b1

View File

@ -1,16 +1,20 @@
{ stdenv, fetchurl, mesa, x11, libXmu, libXi }:
stdenv.mkDerivation {
name = "glew-1.5.2";
stdenv.mkDerivation rec {
name = "glew-1.7.0";
src = fetchurl {
url = mirror://sourceforge/glew/glew-1.5.2.tgz;
sha256 = "0dh5wpfq7aaldkiwcqmm9w59c2qcglkjv8zazmnm8n5771n3caj8";
url = "mirror://sourceforge/glew/${name}.tgz";
sha256 = "02aw6sc4v1434m7awfcxqb0v987i2ykg3fncnp21i9g1n4zsclqn";
};
buildInputs = [ mesa x11 libXmu libXi ];
installPhase = "GLEW_DEST=\$out make install";
installPhase = "
GLEW_DEST=\$out make install
mkdir -pv \$out/share/doc/glew
cp -r README.txt LICENSE.txt doc \$out/share/doc/glew
";
meta = {
description = "Cross-platform open-source C/C++ extension loading library";