diff --git a/pkgs/development/libraries/glew/default.nix b/pkgs/development/libraries/glew/default.nix new file mode 100644 index 000000000000..8024bb92620b --- /dev/null +++ b/pkgs/development/libraries/glew/default.nix @@ -0,0 +1,17 @@ +args: +args.stdenv.mkDerivation { + name = "glew-1.5.0"; + + src = args.fetchurl { + url = http://dfn.dl.sourceforge.net/sourceforge/glew/glew-1.5.0-src.tgz; + sha256 = "1kjr1fchnl785wsg11vzc03q3pm12lh20n1i593zr1xqfjgx2b4h"; + }; + + buildInputs =(with args; [mesa x11 libXmu libXi libtool]); + + 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 + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dc45ba2cc317..3f0ebb86d0cc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1852,6 +1852,11 @@ rec { }; }; + glew = import ../development/libraries/glew { + inherit fetchurl stdenv mesa x11; + inherit (xlibs) libXmu libXi; + }; + glibc = useFromStdenv (stdenv ? glibc) stdenv.glibc (import ../development/libraries/glibc { inherit fetchurl stdenv kernelHeaders;