summary refs log tree commit diff
path: root/pkgs/development/libraries/glm
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-12-05 10:51:40 +0300
committerMichael Raskin <7c6f434c@mail.ru>2014-12-05 10:51:40 +0300
commitb4084d4913a8700e439c8c9d512770c569027720 (patch)
tree354705c1f41474c05ca955c61784ce9635975728 /pkgs/development/libraries/glm
parent761e5309b51511db1509fdfd548eeb6429e012f7 (diff)
downloadnixpkgs-b4084d4913a8700e439c8c9d512770c569027720.tar
nixpkgs-b4084d4913a8700e439c8c9d512770c569027720.tar.gz
nixpkgs-b4084d4913a8700e439c8c9d512770c569027720.tar.bz2
nixpkgs-b4084d4913a8700e439c8c9d512770c569027720.tar.lz
nixpkgs-b4084d4913a8700e439c8c9d512770c569027720.tar.xz
nixpkgs-b4084d4913a8700e439c8c9d512770c569027720.tar.zst
nixpkgs-b4084d4913a8700e439c8c9d512770c569027720.zip
Just use old glm for LO, the rest of LO is not keen on using C++ git add -A 1
Diffstat (limited to 'pkgs/development/libraries/glm')
-rw-r--r--pkgs/development/libraries/glm/0954.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/libraries/glm/0954.nix b/pkgs/development/libraries/glm/0954.nix
new file mode 100644
index 00000000000..a5b62c6b04e
--- /dev/null
+++ b/pkgs/development/libraries/glm/0954.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchurl, unzip }:
+
+stdenv.mkDerivation rec {
+  name = "glm-0.9.5.4";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/project/ogl-math/${name}/${name}.zip";
+    sha256 = "0v14xssysy3q1h2mga6rqlz722mwbis4rrx76zmvhjqh17qh4l62";
+  };
+
+  buildInputs = [ unzip ];
+
+  outputs = [ "out" "doc" ];
+
+  installPhase = ''
+    mkdir -p "$out/include"
+    cp -r glm "$out/include"
+
+    mkdir -p "$doc/share/doc/glm"
+    cp -r doc/* "$doc/share/doc/glm"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "OpenGL Mathematics library for C++";
+    longDescription = ''
+      OpenGL Mathematics (GLM) is a header only C++ mathematics library for
+      graphics software based on the OpenGL Shading Language (GLSL)
+      specification and released under the MIT license.
+    '';
+    homepage = http://glm.g-truc.net/;
+    license = licenses.mit;
+    platforms = platforms.unix;
+    maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
+  };
+}