lol
1{ stdenv, fetchurl, unzip }:
2
3stdenv.mkDerivation rec {
4 name = "glm-0.9.6.1";
5
6 src = fetchurl {
7 url = "mirror://sourceforge/project/ogl-math/${name}/${name}.zip";
8 sha256 = "1s1kpf9hpyq6bdf87nhlkxyr2ay0ip9wqicdma9h8yz4vs20r2hs";
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}