2010-07-28 17:35:01 +02:00
|
|
|
{ stdenv, fetchurl, mesa, x11, libXmu, libXi }:
|
2010-02-05 23:00:51 +01:00
|
|
|
|
2012-01-26 19:04:02 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "glew-1.7.0";
|
2008-01-16 03:20:46 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2012-01-26 19:04:02 +01:00
|
|
|
url = "mirror://sourceforge/glew/${name}.tgz";
|
|
|
|
sha256 = "02aw6sc4v1434m7awfcxqb0v987i2ykg3fncnp21i9g1n4zsclqn";
|
2008-01-16 03:20:46 +01:00
|
|
|
};
|
|
|
|
|
2010-07-28 17:35:01 +02:00
|
|
|
buildInputs = [ mesa x11 libXmu libXi ];
|
2008-01-16 03:20:46 +01:00
|
|
|
|
2012-01-26 19:04:02 +01:00
|
|
|
installPhase = "
|
|
|
|
GLEW_DEST=\$out make install
|
|
|
|
mkdir -pv \$out/share/doc/glew
|
|
|
|
cp -r README.txt LICENSE.txt doc \$out/share/doc/glew
|
|
|
|
";
|
2010-07-28 17:35:01 +02:00
|
|
|
|
2008-01-16 03:20:46 +01:00
|
|
|
meta = {
|
2010-07-28 17:35:01 +02:00
|
|
|
description = "Cross-platform open-source C/C++ extension loading library";
|
2010-02-05 23:00:51 +01:00
|
|
|
homepage = http://glew.sourceforge.net/;
|
|
|
|
license = ["BSD" "GLX" "SGI-B" "GPL2"]; # License description copied from gentoo-1.4.0
|
2008-01-16 03:20:46 +01:00
|
|
|
};
|
|
|
|
}
|