2018-08-10 08:00:39 +01:00
|
|
|
{ stdenv, fetchurl, gmp, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mosml";
|
2018-08-10 08:00:39 +01:00
|
|
|
version = "2.10.1";
|
|
|
|
|
|
|
|
buildInputs = [ gmp perl ];
|
|
|
|
|
2019-08-20 22:20:00 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ] ++ stdenv.lib.optionals stdenv.isDarwin [ "CC=cc" ];
|
2018-08-10 08:00:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/kfl/mosml/archive/ver-${version}.tar.gz";
|
|
|
|
sha256 = "13x7wj94p0inn84pzpj52dch5s9lznqrj287bd3nk3dqd0v3kmgy";
|
|
|
|
};
|
|
|
|
|
|
|
|
setSourceRoot = ''export sourceRoot="$(echo */src)"'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A light-weight implementation of Standard ML";
|
|
|
|
longDescription = ''
|
|
|
|
Moscow ML is a light-weight implementation of Standard ML (SML), a strict
|
|
|
|
functional language used in teaching and research.
|
|
|
|
'';
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://mosml.org/;
|
2018-08-10 08:00:39 +01:00
|
|
|
license = licenses.gpl2;
|
2019-08-20 22:20:00 +01:00
|
|
|
platforms = platforms.unix;
|
2018-08-10 08:00:39 +01:00
|
|
|
maintainers = with maintainers; [ vaibhavsagar ];
|
|
|
|
};
|
|
|
|
}
|