2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
|
2014-01-31 05:44:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocamlify-0.0.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://forge.ocamlcore.org/frs/download.php/1209/ocamlify-0.0.2.tar.gz";
|
2014-01-31 05:44:42 +00:00
|
|
|
sha256 = "1f0fghvlbfryf5h3j4as7vcqrgfjb4c8abl5y0y5h069vs4kp5ii";
|
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2014-01-31 05:44:42 +00:00
|
|
|
|
2018-04-02 06:46:54 +01:00
|
|
|
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
|
|
|
|
'';
|
2014-01-31 05:44:42 +00:00
|
|
|
|
2017-02-26 20:18:02 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
2014-01-31 05:44:42 +00:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://forge.ocamlcore.org/projects/ocamlmod/ocamlmod";
|
2014-01-31 05:44:42 +00:00
|
|
|
description = "Generate OCaml modules from source files";
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-01-31 05:44:42 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [
|
2019-10-07 15:44:58 +01:00
|
|
|
maggesi
|
2014-01-31 05:44:42 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|