2010-07-28 16:35:01 +01:00
|
|
|
{ stdenv, fetchurl, mesa, x11, libXmu, libXi }:
|
2010-02-05 22:00:51 +00:00
|
|
|
|
2012-01-26 18:04:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "glew-1.7.0";
|
2008-01-16 02:20:46 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2012-01-26 18:04:02 +00:00
|
|
|
url = "mirror://sourceforge/glew/${name}.tgz";
|
|
|
|
sha256 = "02aw6sc4v1434m7awfcxqb0v987i2ykg3fncnp21i9g1n4zsclqn";
|
2008-01-16 02:20:46 +00:00
|
|
|
};
|
|
|
|
|
2010-07-28 16:35:01 +01:00
|
|
|
buildInputs = [ mesa x11 libXmu libXi ];
|
2008-01-16 02:20:46 +00:00
|
|
|
|
2012-01-26 18:04:02 +00: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 16:35:01 +01:00
|
|
|
|
2008-01-16 02:20:46 +00:00
|
|
|
meta = {
|
2010-07-28 16:35:01 +01:00
|
|
|
description = "Cross-platform open-source C/C++ extension loading library";
|
2010-02-05 22:00:51 +00:00
|
|
|
homepage = http://glew.sourceforge.net/;
|
|
|
|
license = ["BSD" "GLX" "SGI-B" "GPL2"]; # License description copied from gentoo-1.4.0
|
2008-01-16 02:20:46 +00:00
|
|
|
};
|
|
|
|
}
|