blob: 0ac69f86c90dd27b8adce4c1b1b29eaab98baa9e (
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
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
stdenv.mkDerivation rec {
pname = "ocamlify";
version = "0.0.2";
src = fetchurl {
url = "https://forge.ocamlcore.org/frs/download.php/1209/${pname}-${version}.tar.gz";
sha256 = "1f0fghvlbfryf5h3j4as7vcqrgfjb4c8abl5y0y5h069vs4kp5ii";
};
strictDeps = true;
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
configurePhase = ''
substituteInPlace src/ocamlify.ml --replace 'OCamlifyConfig.version' '"0.0.2"'
'';
buildPhase = "ocamlbuild src/ocamlify.native";
installPhase = ''
mkdir -p $out/bin
mv _build/src/ocamlify.native $out/bin/ocamlify
'';
dontStrip = true;
meta = {
homepage = "https://forge.ocamlcore.org/projects/ocamlmod/ocamlmod";
description = "Generate OCaml modules from source files";
platforms = ocaml.meta.platforms or [];
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [
maggesi
];
};
}
|