2021-10-17 17:04:58 +00:00
|
|
|
{lib, stdenv, fetchurl, autoreconfHook, fetchpatch }:
|
2017-08-07 15:21:08 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "5.6";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "polyml";
|
|
|
|
inherit version;
|
2017-08-07 15:21:08 +00:00
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
2017-08-07 15:21:08 +00:00
|
|
|
substituteInPlace configure.ac --replace stdc++ c++
|
|
|
|
'';
|
|
|
|
|
2021-10-17 17:04:58 +00:00
|
|
|
patches = [
|
|
|
|
# glibc 2.34 compat
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/polyml/raw/4d8868ca5a1ce3268f212599a321f8011c950496/f/polyml-pthread-stack-min.patch";
|
|
|
|
sha256 = "1h5ihg2sxld9ymrl3f2mpnbn2242ka1fsa0h4gl9h90kndvg6kby";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-09-25 02:49:25 +00:00
|
|
|
nativeBuildInputs = lib.optional stdenv.isDarwin autoreconfHook;
|
2017-08-07 15:21:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/polyml/polyml.${version}.tar.gz";
|
|
|
|
sha256 = "05d6l2a5m9jf32a8kahwg2p2ph4x9rjf1nsl83331q3gwn5bkmr0";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Standard ML compiler and interpreter";
|
|
|
|
longDescription = ''
|
|
|
|
Poly/ML is a full implementation of Standard ML.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.polyml.org/";
|
2021-01-22 11:25:31 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
platforms = with lib.platforms; linux;
|
2017-08-07 15:21:08 +00:00
|
|
|
maintainers = [ #Add your name here!
|
2021-01-22 11:25:31 +00:00
|
|
|
lib.maintainers.maggesi
|
2017-08-07 15:21:08 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|