2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, mlton }:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mlkit";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "4.7.12";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "melsman";
|
|
|
|
repo = "mlkit";
|
|
|
|
rev = "v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
sha256 = "sha256-9a2CbIOHdN+kTtm2Z001qOEO/nXuSLrzq0ovgHU1hTQ=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook mlton ];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
buildFlags = [ "mlkit" "mlkit_libs" ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
echo ==== Running MLKit test suite: test ====
|
|
|
|
make -C test_dev test
|
|
|
|
echo ==== Running MLKit test suite: test_prof ====
|
|
|
|
make -C test_dev test_prof
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
description = "Standard ML Compiler and Toolkit";
|
|
|
|
homepage = "https://elsman.com/mlkit/";
|
2021-08-23 08:02:39 +00:00
|
|
|
changelog = "https://github.com/melsman/mlkit/blob/v${version}/NEWS.md";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-08-23 08:02:39 +00:00
|
|
|
platforms = platforms.unix;
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ athas ];
|
|
|
|
};
|
|
|
|
}
|