1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/development/libraries/glew/default.nix
Michael Raskin 9f2be8d6b1 Update GLEW
svn path=/nixpkgs/trunk/; revision=31867
2012-01-26 18:04:02 +00:00

25 lines
678 B
Nix

{ stdenv, fetchurl, mesa, x11, libXmu, libXi }:
stdenv.mkDerivation rec {
name = "glew-1.7.0";
src = fetchurl {
url = "mirror://sourceforge/glew/${name}.tgz";
sha256 = "02aw6sc4v1434m7awfcxqb0v987i2ykg3fncnp21i9g1n4zsclqn";
};
buildInputs = [ mesa x11 libXmu libXi ];
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";
homepage = http://glew.sourceforge.net/;
license = ["BSD" "GLX" "SGI-B" "GPL2"]; # License description copied from gentoo-1.4.0
};
}