summary refs log tree commit diff
path: root/pkgs/development/libraries/ptlib
diff options
context:
space:
mode:
authorKranium Gikos Mendoza <kranium@gikos.net>2017-09-03 03:19:44 +1000
committerKranium Gikos Mendoza <kranium@gikos.net>2017-09-03 03:51:44 +1000
commit32d4a3dec842df9b4d746e671ab065276d730e78 (patch)
treef203cad3c615baaef5ac48498287e4d6444868d6 /pkgs/development/libraries/ptlib
parent8693cc542546c19633daa2211962f1c98b8e6519 (diff)
downloadnixlib-32d4a3dec842df9b4d746e671ab065276d730e78.tar
nixlib-32d4a3dec842df9b4d746e671ab065276d730e78.tar.gz
nixlib-32d4a3dec842df9b4d746e671ab065276d730e78.tar.bz2
nixlib-32d4a3dec842df9b4d746e671ab065276d730e78.tar.lz
nixlib-32d4a3dec842df9b4d746e671ab065276d730e78.tar.xz
nixlib-32d4a3dec842df9b4d746e671ab065276d730e78.tar.zst
nixlib-32d4a3dec842df9b4d746e671ab065276d730e78.zip
ptlib: fix gcc6 build
Diffstat (limited to 'pkgs/development/libraries/ptlib')
-rw-r--r--pkgs/development/libraries/ptlib/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/libraries/ptlib/default.nix b/pkgs/development/libraries/ptlib/default.nix
index 604f246e711f..7941df032a66 100644
--- a/pkgs/development/libraries/ptlib/default.nix
+++ b/pkgs/development/libraries/ptlib/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, pkgconfig, bison, flex, unixODBC
+{ stdenv, fetchurl, fetchpatch, pkgconfig, bison, flex, unixODBC
 , openssl, openldap, cyrus_sasl, kerberos, expat, SDL, libdv, libv4l, alsaLib }:
 
 stdenv.mkDerivation rec {
@@ -9,12 +9,20 @@ stdenv.mkDerivation rec {
     sha256 = "1jf27mjz8vqnclhrhrpn7niz4c177kcjbd1hc7vn65ihcqfz05rs";
   };
 
+  NIX_CFLAGS_COMPILE = "-std=gnu++98";
+
   buildInputs = [ pkgconfig bison flex unixODBC openssl openldap
                   cyrus_sasl kerberos expat SDL libdv libv4l alsaLib ];
 
   enableParallelBuilding = true;
 
-  patches = [ ./bison.patch ./sslv3.patch ];
+  patches = [
+    ./bison.patch
+    ./sslv3.patch
+    (fetchpatch { url = http://sources.debian.net/data/main/p/ptlib/2.10.11~dfsg-2.1/debian/patches/gcc-5_support;
+      sha256 = "0pf2yj0150r4cnc6nv65mclrm3dillqh1xjk7m6gsjnk9b96i5d4";
+    })
+  ];
 
   meta = with stdenv.lib; {
     description = "Portable Tools from OPAL VoIP";