2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, gmp, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mosml";
|
|
|
|
version = "2.10.1";
|
|
|
|
|
|
|
|
buildInputs = [ gmp perl ];
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/kfl/mosml/archive/ver-${version}.tar.gz";
|
|
|
|
sha256 = "13x7wj94p0inn84pzpj52dch5s9lznqrj287bd3nk3dqd0v3kmgy";
|
|
|
|
};
|
|
|
|
|
|
|
|
setSourceRoot = ''export sourceRoot="$(echo */src)"'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
# MosML needs a specific RPATH entry pointing to $(out)/lib (added
|
|
|
|
# by the build system), which patchelf will remove.
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = "https://mosml.org/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ vaibhavsagar ];
|
|
|
|
};
|
|
|
|
}
|