2022-01-13 20:06:32 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, 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
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kfl";
|
|
|
|
repo = "mosml";
|
|
|
|
rev = "ver-${version}";
|
|
|
|
sha256 = "sha256-GK39WvM7NNhoC5f0Wjy4/5VWT+Rbh2qo+W71hWrbPso=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Light-weight implementation of Standard ML";
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|