summary refs log tree commit diff
path: root/pkgs/development/libraries/ptlib
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-08-08 20:47:16 +0200
committerLuca Bruno <lucabru@src.gnome.org>2014-08-08 20:50:04 +0200
commit59cfbf4d7d41ddf674d381508b1fc3fc60304a4e (patch)
tree1a60d02dfcc24cb131063c3cbd58879bd7c97053 /pkgs/development/libraries/ptlib
parent52d9c93abef582cfa32d94397aa86f0aa169917c (diff)
downloadnixlib-59cfbf4d7d41ddf674d381508b1fc3fc60304a4e.tar
nixlib-59cfbf4d7d41ddf674d381508b1fc3fc60304a4e.tar.gz
nixlib-59cfbf4d7d41ddf674d381508b1fc3fc60304a4e.tar.bz2
nixlib-59cfbf4d7d41ddf674d381508b1fc3fc60304a4e.tar.lz
nixlib-59cfbf4d7d41ddf674d381508b1fc3fc60304a4e.tar.xz
nixlib-59cfbf4d7d41ddf674d381508b1fc3fc60304a4e.tar.zst
nixlib-59cfbf4d7d41ddf674d381508b1fc3fc60304a4e.zip
ptlib: bump version and fix build for ZHF
Diffstat (limited to 'pkgs/development/libraries/ptlib')
-rw-r--r--pkgs/development/libraries/ptlib/default.nix52
1 files changed, 18 insertions, 34 deletions
diff --git a/pkgs/development/libraries/ptlib/default.nix b/pkgs/development/libraries/ptlib/default.nix
index 484e5b10d7ac..9f9b188322fa 100644
--- a/pkgs/development/libraries/ptlib/default.nix
+++ b/pkgs/development/libraries/ptlib/default.nix
@@ -1,47 +1,31 @@
-x@{builderDefsPackage
-  , autoconf, automake, libtool, doxygen, pkgconfig, bison, flex, unixODBC
-  , openssl, openldap, cyrus_sasl, krb5, expat, SDL, libdv, libv4l, alsaLib
-  , ...}:
-builderDefsPackage
-(a :  
-let 
-  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
-    [];
+{ stdenv, fetchurl, pkgconfig, bison, flex, unixODBC
+, openssl, openldap, cyrus_sasl, krb5, expat, SDL, libdv, libv4l, alsaLib }:
 
-  buildInputs = map (n: builtins.getAttr n x)
-    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
-  sourceInfo = rec {
-    baseName="ptlib";
-    baseVersion="2.6";
-    patchlevel="7";
-    version="${baseVersion}.${patchlevel}";
-    name="${baseName}-${version}";
-    url="mirror://gnome/sources/${baseName}/${baseVersion}/${name}.tar.bz2";
-    hash="0zxrygl2ivbciqf97yd9n67ch9vd9gp236w96i6ia8fxzqjq5lkx";
-  };
-in
-rec {
-  src = a.fetchurl {
-    url = sourceInfo.url;
-    sha256 = sourceInfo.hash;
+stdenv.mkDerivation rec {
+  name = "ptlib-2.10.10";
+
+  src = fetchurl {
+    url = "mirror://gnome/sources/ptlib/2.10/${name}.tar.xz";
+    sha256 = "7fcaabe194cbd3bc0b370b951dffd19cfe7ea0298bfff6aecee948e97f3207e4";
   };
 
-  inherit (sourceInfo) name version;
-  inherit buildInputs;
+  buildInputs = [ pkgconfig bison flex unixODBC openssl openldap 
+                  cyrus_sasl krb5 expat SDL libdv libv4l alsaLib ];
 
-  /* doConfigure should be removed if not needed */
-  phaseNames = ["doConfigure" "doMakeInstall"];
+  enableParallelBuilding = true;
+
+  patches = [ ./bison.patch ];
       
-  meta = {
+  meta = with stdenv.lib; {
     description = "Portable Tools from OPAL VoIP";
-    maintainers = [ a.lib.maintainers.raskin ];
-    platforms = a.lib.platforms.linux;
-    broken = true;
+    maintainers = [ maintainers.raskin ];
+    platforms = platforms.linux;
   };
+
   passthru = {
     updateInfo = {
       downloadPage = "http://ftp.gnome.org/sources/ptlib/";
     };
   };
-}) x
+}