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
commitb4084d4913a8700e439c8c9d512770c569027720 authorMichael Raskin <7c6f434c@mail.ru> dateFri 5 Dec 2014, 10:51 (12 years ago) parent761e530
3 files changed+37−2
pkgs/applications/office/libreoffice/default.nix−2 pkgs/development/libraries/glm/0954.nix+35 pkgs/top-level/all-packages.nix+2
pkgs/applications/office/libreoffice/default.nix−2
@@ -104,8 +104,6 @@ stdenv.mkDerivation rec {
104104 # to make its dlopen work.
105105 NIX_LDFLAGS = "-lcups";
106106
107− NIX_CFLAGS_COMPILE="-std=c++11"; # glm 0.9.6.0 insists on this
108−
109107 # If we call 'configure', 'make' will then call configure again without parameters.
110108 # It's their system.
111109 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
52855285 };
52865286
52875287 glm = callPackage ../development/libraries/glm { };
5288+ glm_0954 = callPackage ../development/libraries/glm/0954.nix { };
52885289
52895290 glog = callPackage ../development/libraries/glog { };
52905291
@@ -10063,6 +10064,7 @@ let
1006310064 zip = zip.override { enableNLS = false; };
1006410065 jdk = openjdk;
1006510066 boost = boost155;
10067+ glm = glm_0954;
1006610068 fontsConf = makeFontsConf {
1006710069 fontDirectories = [
1006810070 freefont_ttf xorg.fontmiscmisc xorg.fontbhttf