git.iko.soy/typeable/nixpkgs
on master help sign in
Just use old glm for LO, the rest of LO is not keen on using C++ git add -A 1
b4084d4Michael Raskin
pkgs/applications/office/libreoffice/default.nix−2
@@ -104,8 +104,6 @@ stdenv.mkDerivation rec {
104 # to make its dlopen work.
104 # to make its dlopen work.
105 NIX_LDFLAGS = "-lcups";
105 NIX_LDFLAGS = "-lcups";
106
106
107− NIX_CFLAGS_COMPILE="-std=c++11"; # glm 0.9.6.0 insists on this
108−
109 # If we call 'configure', 'make' will then call configure again without parameters.
107 # If we call 'configure', 'make' will then call configure again without parameters.
110 # It's their system.
108 # It's their system.
111 configureScript = "./autogen.sh";
109 configureScript = "./autogen.sh";
pkgs/development/libraries/glm/0954.nixnew file+35
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -5285,6 +5285,7 @@ let
5285 };
5285 };
5286
5286
5287 glm = callPackage ../development/libraries/glm { };
5287 glm = callPackage ../development/libraries/glm { };
5288+ glm_0954 = callPackage ../development/libraries/glm/0954.nix { };
5288
5289
5289 glog = callPackage ../development/libraries/glog { };
5290 glog = callPackage ../development/libraries/glog { };
5290
5291
@@ -10063,6 +10064,7 @@ let
10063 zip = zip.override { enableNLS = false; };
10064 zip = zip.override { enableNLS = false; };
10064 jdk = openjdk;
10065 jdk = openjdk;
10065 boost = boost155;
10066 boost = boost155;
10067+ glm = glm_0954;
10066 fontsConf = makeFontsConf {
10068 fontsConf = makeFontsConf {
10067 fontDirectories = [
10069 fontDirectories = [
10068 freefont_ttf xorg.fontmiscmisc xorg.fontbhttf
10070 freefont_ttf xorg.fontmiscmisc xorg.fontbhttf