2017-10-13 22:10:51 +02:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ounit }:
|
2014-01-31 06:44:42 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ocamlmod";
|
2017-10-13 22:10:51 +02:00
|
|
|
version = "0.0.9";
|
2014-01-31 06:44:42 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-13 22:10:51 +02:00
|
|
|
url = "https://forge.ocamlcore.org/frs/download.php/1702/ocamlmod-0.0.9.tar.gz";
|
|
|
|
sha256 = "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa";
|
2014-01-31 06:44:42 +01:00
|
|
|
};
|
|
|
|
|
2017-10-13 22:10:51 +02:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ounit ];
|
2014-01-31 06:44:42 +01:00
|
|
|
|
2017-10-13 22:10:51 +02:00
|
|
|
configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
|
2014-01-31 06:44:42 +01:00
|
|
|
buildPhase = "ocaml setup.ml -build";
|
|
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
|
2017-10-13 22:10:51 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = "ocaml setup.ml -test";
|
|
|
|
|
2017-02-26 21:18:02 +01:00
|
|
|
dontStrip = true;
|
|
|
|
|
2014-01-31 06:44:42 +01:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://forge.ocamlcore.org/projects/ocamlmod/ocamlmod";
|
2014-01-31 06:44:42 +01:00
|
|
|
description = "Generate OCaml modules from source files";
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-01-31 06:44:42 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [
|
2019-10-07 16:44:58 +02:00
|
|
|
maggesi
|
2014-01-31 06:44:42 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|