summary refs log tree commit diff
path: root/pkgs/development/libraries/isl
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-05-06 08:32:03 -0400
committerShea Levy <shea@shealevy.com>2015-05-06 08:32:12 -0400
commit3aff74a7a266be14ec7d0ee242601fd037eefe9c (patch)
tree6022e8f1a3d3f36d61ccd5ae7eb69041041f2824 /pkgs/development/libraries/isl
parent09af6d457215c3dcff7144a8917f17d82e3c8674 (diff)
downloadnixpkgs-3aff74a7a266be14ec7d0ee242601fd037eefe9c.tar
nixpkgs-3aff74a7a266be14ec7d0ee242601fd037eefe9c.tar.gz
nixpkgs-3aff74a7a266be14ec7d0ee242601fd037eefe9c.tar.bz2
nixpkgs-3aff74a7a266be14ec7d0ee242601fd037eefe9c.tar.lz
nixpkgs-3aff74a7a266be14ec7d0ee242601fd037eefe9c.tar.xz
nixpkgs-3aff74a7a266be14ec7d0ee242601fd037eefe9c.tar.zst
nixpkgs-3aff74a7a266be14ec7d0ee242601fd037eefe9c.zip
Resurrect old cloog and isl for gcc-4.9
Fixes #7723

Refs 8af39c1cf725be2f42b8d104cf39f2cd74840cac
Refs 5cd11989c55e32df83cf5c4bc257bb6825b4e889
Diffstat (limited to 'pkgs/development/libraries/isl')
-rw-r--r--pkgs/development/libraries/isl/0.11.1.nix23
-rw-r--r--pkgs/development/libraries/isl/fix-gcc-build.diff12
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/libraries/isl/0.11.1.nix b/pkgs/development/libraries/isl/0.11.1.nix
new file mode 100644
index 00000000000..931ee831b73
--- /dev/null
+++ b/pkgs/development/libraries/isl/0.11.1.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchurl, gmp }:
+
+stdenv.mkDerivation rec {
+  name = "isl-0.11.1"; # CLooG 0.16.3 fails to build with ISL 0.08.
+
+  src = fetchurl {
+    url = "http://pkgs.fedoraproject.org/repo/pkgs/gcc/isl-0.11.1.tar.bz2/bce1586384d8635a76d2f017fb067cd2/isl-0.11.1.tar.bz2";
+    sha256 = "13d9cqa5rzhbjq0xf0b2dyxag7pqa72xj9dhsa03m8ccr1a4npq9";
+  };
+
+  buildInputs = [ gmp ];
+  patches = [ ./fix-gcc-build.diff ];
+
+  enableParallelBuilding = true;
+
+  meta = {
+    homepage = http://www.kotnet.org/~skimo/isl/;
+    license = stdenv.lib.licenses.lgpl21;
+    description = "A library for manipulating sets and relations of integer points bounded by linear constraints";
+    maintainers = [ stdenv.lib.maintainers.shlevy ];
+    platforms = stdenv.lib.platforms.all;
+  };
+}
diff --git a/pkgs/development/libraries/isl/fix-gcc-build.diff b/pkgs/development/libraries/isl/fix-gcc-build.diff
new file mode 100644
index 00000000000..6fbd1f9d478
--- /dev/null
+++ b/pkgs/development/libraries/isl/fix-gcc-build.diff
@@ -0,0 +1,12 @@
+diff -ru isl-0.11.1/include/isl/int.h isl-0.11.1.new/include/isl/int.h
+--- isl-0.11.1/include/isl/int.h        2012-11-29 09:47:32.000000000 +0100
++++ isl-0.11.1.new/include/isl/int.h    2013-10-27 15:35:31.348553812 +0100
+@@ -14,7 +14,7 @@
+ #include <string.h>
+ #include <gmp.h>
+ #if defined(__cplusplus)
+-#include <iostream>
++#include <ostream>
+ #endif
+ 
+ #if defined(__cplusplus)