1{ lib, stdenv, fetchFromGitHub, autoreconfHook, mlton }:
2
3stdenv.mkDerivation rec {
4 pname = "mlkit";
5 version = "4.5.9";
6
7 src = fetchFromGitHub {
8 owner = "melsman";
9 repo = "mlkit";
10 rev = "v${version}";
11 sha256 = "sha256-b+iPuGB82a0r0zl49+RbalxR6OpFNXOxZgubzKE+2M4=";
12 };
13
14 nativeBuildInputs = [ autoreconfHook mlton ];
15
16 buildFlags = ["mlkit" "mlkit_libs"];
17
18 meta = with lib; {
19 description = "Standard ML Compiler and Toolkit";
20 homepage = "https://elsman.com/mlkit/";
21 changelog = "https://github.com/melsman/mlkit/blob/v${version}/NEWS.md";
22 license = licenses.gpl2Plus;
23 platforms = platforms.unix;
24 maintainers = with maintainers; [ athas ];
25 };
26}