blob: 3ca84aabd0c4d67e66c48301fc2eb345552a1085 (
plain)
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
|
{
lib,
ocaml,
buildDunePackage,
fetchurl,
ounit2,
}:
buildDunePackage (finalAttrs: {
pname = "ocamlmod";
version = "0.1.1";
minimalOCamlVersion = "4.03";
src = fetchurl {
url = "https://github.com/gildor478/ocamlmod/releases/download/v${finalAttrs.version}/ocamlmod-${finalAttrs.version}.tbz";
hash = "sha256-qMG+y/iS+L4qtKiJX01pTTAdQuGLoIA+so1fqY9bm8o=";
};
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ ounit2 ];
dontStrip = true;
meta = {
homepage = "https://github.com/gildor478/ocamlmod";
description = "Generate OCaml modules from source files";
mainProgram = "ocamlmod";
license = lib.licenses.WITH lib.licenses.lgpl21Only lib.licenses.ocamlLgplLinkingException;
};
})
|