blob: 104b7ce688bc95ff4c773bfe241da65633a26b66 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ lib
, fetchFromGitHub
, stdenvNoCC
, mlton
, lua5_3
}:
stdenvNoCC.mkDerivation {
pname = "lunarml";
version = "unstable-2023-09-21";
src = fetchFromGitHub {
owner = "minoki";
repo = "LunarML";
rev = "c6e23ae68149bda550ddb75c0df9f422aa379b3a";
sha256 = "DY4gOCXfGV1OVdGXd6GGvbHlQdWWxMg5TZzkceeOu9o=";
};
outputs = [ "out" "doc" ];
nativeBuildInputs = [
mlton
];
nativeCheckInputs = [
lua5_3
];
postBuild = ''
make -C thirdparty install
'';
doCheck = true;
installPhase = ''
runHook preInstall
mkdir -p $doc/lunarml $out/{bin,lib}
cp -r bin $out
cp -r lib $out
cp -r example $doc/lunarml
runHook postInstall
'';
meta = {
description = "Standard ML compiler that produces Lua/JavaScript";
homepage = "https://github.com/minoki/LunarML";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ toastal ratsclub ];
platforms = mlton.meta.platforms;
};
}
|