2015-09-30 08:33:46 +01:00
|
|
|
{stdenv, fetchurl, autoreconfHook}:
|
2009-12-10 13:16:06 +00:00
|
|
|
|
2014-01-15 14:58:27 +00:00
|
|
|
let
|
2014-10-01 05:11:26 +01:00
|
|
|
version = "5.5.2";
|
2014-01-15 14:58:27 +00:00
|
|
|
in
|
|
|
|
|
2009-12-10 13:16:06 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-01-15 14:58:27 +00:00
|
|
|
name = "polyml-${version}";
|
2009-12-10 13:16:06 +00:00
|
|
|
|
2015-09-30 08:33:46 +01:00
|
|
|
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace configure.ac --replace stdc++ c++
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
|
|
|
|
|
2009-12-10 13:16:06 +00:00
|
|
|
src = fetchurl {
|
2014-01-15 14:58:27 +00:00
|
|
|
url = "mirror://sourceforge/polyml/polyml.${version}.tar.gz";
|
2014-10-01 05:11:26 +01:00
|
|
|
sha256 = "10m680qdad6bd50bav9xjsgmsxw8yxg55vr7grbg0gvykzl2pzbk";
|
2009-12-10 13:16:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Standard ML compiler and interpreter";
|
|
|
|
longDescription = ''
|
|
|
|
Poly/ML is a full implementation of Standard ML.
|
|
|
|
'';
|
|
|
|
homepage = http://www.polyml.org/;
|
2012-09-06 17:46:54 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2011-05-13 16:55:05 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
maintainers = [ #Add your name here!
|
|
|
|
stdenv.lib.maintainers.z77z
|
|
|
|
];
|
2009-12-10 13:16:06 +00:00
|
|
|
};
|
|
|
|
}
|