1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 20:12:52 +00:00
nixpkgs/pkgs/development/libraries/glew/default.nix

25 lines
678 B
Nix
Raw Normal View History

{ 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
};
}