From 3e52549ea61b325c879d028075f815b59a27ed94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 18 Jul 2009 21:22:13 +0000 Subject: [PATCH] Add the Parma Polyhedra Library (PPL), an optional dependency of GCC 4.4. svn path=/nixpkgs/trunk/; revision=16421 --- pkgs/development/libraries/ppl/default.nix | 44 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/libraries/ppl/default.nix 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 ]; + }; + } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 15953cb5bfd8..0f77b3066626 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1161,6 +1161,10 @@ let inherit fetchurl stdenv; }; + ppl = import ../development/libraries/ppl { + inherit fetchurl stdenv gmpxx perl gnum4; + }; + /* WARNING: this version is unsuitable for using with a setuid wrapper */ ppp = builderDefsPackage (import ../tools/networking/ppp) { };