about summary refs log tree commit diff
path: root/pkgs/development/libraries/glew/default.nix
blob: 6c76dafd57249f8768695b6f83d9f577d0122058 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ stdenv, fetchurl, mesa, x11, libXmu, libXi }:

stdenv.mkDerivation {
  name = "glew-1.5.2";

  src = fetchurl {
    url = mirror://sourceforge/glew/glew-1.5.2.tgz;
    sha256 = "0dh5wpfq7aaldkiwcqmm9w59c2qcglkjv8zazmnm8n5771n3caj8";
  };

  buildInputs = [ mesa x11 libXmu libXi ];

  installPhase = "GLEW_DEST=\$out make install";
  
  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 
  };
}