2013-11-04 19:25:20 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2008-08-29 11:48:44 +00:00
|
|
|
|
2013-04-06 10:35:03 +00:00
|
|
|
let
|
2010-08-24 13:20:55 +00:00
|
|
|
isMingw = stdenv ? cross && stdenv.cross.config == "i686-pc-mingw32" ;
|
|
|
|
in
|
2013-11-04 19:25:20 +00:00
|
|
|
stdenv.mkDerivation {
|
2009-01-27 17:46:07 +00:00
|
|
|
name = "aterm-2.8";
|
2008-08-29 11:48:44 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-01-27 17:46:07 +00:00
|
|
|
url = http://www.meta-environment.org/releases/aterm-2.8.tar.gz;
|
|
|
|
sha256 = "1vq4qpmcww3n9v7bklgp7z1yqi9gmk6hcahqjqdzc5ksa089rdms";
|
2008-08-29 11:48:44 +00:00
|
|
|
};
|
|
|
|
|
2009-01-27 17:46:07 +00:00
|
|
|
patches = [
|
|
|
|
# Fix for http://bugzilla.sen.cwi.nl:8080/show_bug.cgi?id=841
|
|
|
|
./max-long.patch
|
2010-08-24 13:20:55 +00:00
|
|
|
] ++ ( if isMingw then [./aterm-mingw-asm.patch] else [] );
|
2013-04-06 10:35:03 +00:00
|
|
|
|
|
|
|
# The test programs stress, randgen, fib, and testsafio all fail with
|
|
|
|
# segmentation faults when compiled with GCC 4.8.x, and the code itself many
|
|
|
|
# warnings, complaining "cast from pointer to integer of different size".
|
|
|
|
# This looks really bad. I leave the test suite enabled, because those issue
|
|
|
|
# feel too serious to just ignore.
|
2008-09-02 13:51:32 +00:00
|
|
|
doCheck = true;
|
2008-08-29 11:48:44 +00:00
|
|
|
|
2013-11-04 19:25:20 +00:00
|
|
|
dontStrip = isMingw;
|
|
|
|
|
2008-08-29 11:48:44 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.cwi.nl/htbin/sen1/twiki/bin/view/SEN1/ATerm;
|
|
|
|
license = "LGPL";
|
|
|
|
description = "Library for manipulation of term data structures in C";
|
2013-11-04 19:25:20 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
2014-09-13 11:51:39 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2013-12-06 18:31:03 +00:00
|
|
|
broken = true;
|
2008-08-29 11:48:44 +00:00
|
|
|
};
|
2013-11-04 19:25:20 +00:00
|
|
|
}
|