2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocamlify-0.0.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://forge.ocamlcore.org/frs/download.php/1209/ocamlify-0.0.2.tar.gz";
|
|
|
|
sha256 = "1f0fghvlbfryf5h3j4as7vcqrgfjb4c8abl5y0y5h069vs4kp5ii";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ 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 = {
|
2020-11-30 08:33:03 +00:00
|
|
|
homepage = "https://forge.ocamlcore.org/projects/ocamlmod/ocamlmod";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generate OCaml modules from source files";
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = with lib.maintainers; [
|
2020-04-24 23:36:52 +00:00
|
|
|
maggesi
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|