2022-01-07 17:09:23 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gmp, perl }:
|
2018-08-10 09:00:39 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mosml";
|
2018-08-10 09:00:39 +02:00
|
|
|
version = "2.10.1";
|
|
|
|
|
|
|
|
buildInputs = [ gmp perl ];
|
|
|
|
|
2021-02-16 12:51:23 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
|
2018-08-10 09:00:39 +02:00
|
|
|
|
2022-01-07 17:09:23 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kfl";
|
|
|
|
repo = "mosml";
|
|
|
|
rev = "ver-${version}";
|
|
|
|
sha256 = "sha256-GK39WvM7NNhoC5f0Wjy4/5VWT+Rbh2qo+W71hWrbPso=";
|
2018-08-10 09:00:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
setSourceRoot = ''export sourceRoot="$(echo */src)"'';
|
|
|
|
|
2021-06-20 16:25:01 +02:00
|
|
|
# MosML needs a specific RPATH entry pointing to $(out)/lib (added
|
|
|
|
# by the build system), which patchelf will remove.
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
2021-01-22 12:25:31 +01:00
|
|
|
meta = with lib; {
|
2018-08-10 09:00:39 +02: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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://mosml.org/";
|
2018-08-10 09:00:39 +02:00
|
|
|
license = licenses.gpl2;
|
2019-08-20 23:20:00 +02:00
|
|
|
platforms = platforms.unix;
|
2018-08-10 09:00:39 +02:00
|
|
|
maintainers = with maintainers; [ vaibhavsagar ];
|
|
|
|
};
|
|
|
|
}
|