2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, gmp, libffi }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "polyml";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "5.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace configure.ac --replace stdc++ c++
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libffi gmp ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = lib.optional stdenv.isDarwin autoreconfHook;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-shared"
|
|
|
|
"--with-system-libffi"
|
|
|
|
"--with-gmp"
|
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "polyml";
|
|
|
|
repo = "polyml";
|
|
|
|
rev = "v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-4oo4AB54CivhS99RuZVTP9+Ic0CDpsBb+OiHvOhmZnM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Standard ML compiler and interpreter";
|
|
|
|
longDescription = ''
|
|
|
|
Poly/ML is a full implementation of Standard ML.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.polyml.org/";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = with platforms; (linux ++ darwin);
|
|
|
|
maintainers = with maintainers; [ maggesi kovirobi ];
|
|
|
|
};
|
|
|
|
}
|