@@ -0,0 +1,35 @@
1+{ stdenv, fetchurl, unzip }:
2+
3+stdenv.mkDerivation rec {
4+ name = "glm-0.9.5.4";
5+
6+ src = fetchurl {
7+ url = "mirror://sourceforge/project/ogl-math/${name}/${name}.zip";
8+ sha256 = "0v14xssysy3q1h2mga6rqlz722mwbis4rrx76zmvhjqh17qh4l62";
9+ };
10+
11+ buildInputs = [ unzip ];
12+
13+ outputs = [ "out" "doc" ];
14+
15+ installPhase = ''
16+ mkdir -p "$out/include"
17+ cp -r glm "$out/include"
18+
19+ mkdir -p "$doc/share/doc/glm"
20+ cp -r doc/* "$doc/share/doc/glm"
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ description = "OpenGL Mathematics library for C++";
25+ longDescription = ''
26+ OpenGL Mathematics (GLM) is a header only C++ mathematics library for
27+ graphics software based on the OpenGL Shading Language (GLSL)
28+ specification and released under the MIT license.
29+ '';
30+ homepage = http://glm.g-truc.net/;
31+ license = licenses.mit;
32+ platforms = platforms.unix;
33+ maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
34+ };
35+}