about summary refs log tree commit diff
path: root/pkgs/development/libraries/ppl
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-07-18 21:22:13 +0000
committerLudovic Courtès <ludo@gnu.org>2009-07-18 21:22:13 +0000
commit3e52549ea61b325c879d028075f815b59a27ed94 (patch)
treeb9e2796a648433624da573f7e6d2260f96860b7a /pkgs/development/libraries/ppl
parentdf8def8dfb23e6aae24b52f7daa3a8f117ad8424 (diff)
downloadnixlib-3e52549ea61b325c879d028075f815b59a27ed94.tar
nixlib-3e52549ea61b325c879d028075f815b59a27ed94.tar.gz
nixlib-3e52549ea61b325c879d028075f815b59a27ed94.tar.bz2
nixlib-3e52549ea61b325c879d028075f815b59a27ed94.tar.lz
nixlib-3e52549ea61b325c879d028075f815b59a27ed94.tar.xz
nixlib-3e52549ea61b325c879d028075f815b59a27ed94.tar.zst
nixlib-3e52549ea61b325c879d028075f815b59a27ed94.zip
Add the Parma Polyhedra Library (PPL), an optional dependency of GCC 4.4.
svn path=/nixpkgs/trunk/; revision=16421
Diffstat (limited to 'pkgs/development/libraries/ppl')
-rw-r--r--pkgs/development/libraries/ppl/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ppl/default.nix b/pkgs/development/libraries/ppl/default.nix
new file mode 100644
index 000000000000..0d1c920b635d
--- /dev/null
+++ b/pkgs/development/libraries/ppl/default.nix
@@ -0,0 +1,44 @@
+{ fetchurl, stdenv, gmpxx, perl, gnum4 }:
+
+let version = "0.10.2"; in
+  stdenv.mkDerivation rec {
+    name = "ppl-${version}";
+
+    src = fetchurl {
+      url = "ftp://ftp.cs.unipr.it/pub/ppl/releases/${version}/${name}.tar.bz2";
+      sha256 = "0xz2f3lny4l9ji1ilg6pxv34sh4cbh535cnm68smynzp01wgnh7y";
+    };
+
+    buildInputs = [ perl gnum4 ];
+    propagatedBuildInputs = [ gmpxx ];
+
+    # Beware!  It took ~6 hours to compile PPL and run its tests on a 1.2 GHz
+    # x86_64 box.  Nevertheless, being a dependency of GCC, it probably ought
+    # to be tested.
+    doCheck = true;
+
+    meta = {
+      description = "PPL: The Parma Polyhedra Library";
+
+      longDescription = ''
+        The Parma Polyhedra Library (PPL) provides numerical abstractions
+        especially targeted at applications in the field of analysis and
+        verification of complex systems.  These abstractions include convex
+        polyhedra, defined as the intersection of a finite number of (open or
+        closed) halfspaces, each described by a linear inequality (strict or
+        non-strict) with rational coefficients; some special classes of
+        polyhedra shapes that offer interesting complexity/precision tradeoffs;
+        and grids which represent regularly spaced points that satisfy a set of
+        linear congruence relations.  The library also supports finite
+        powersets and products of (any kind of) polyhedra and grids and a mixed
+        integer linear programming problem solver using an exact-arithmetic
+        version of the simplex algorithm.
+      '';
+
+      homepage = http://www.cs.unipr.it/ppl/;
+
+      license = "GPLv3+";
+
+      maintainers = [ stdenv.lib.maintainers.ludo ];
+    };
+  }