2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
|
2014-01-31 05:44:42 +00:00
|
|
|
|
2016-09-19 18:08:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocamlmod-${version}";
|
|
|
|
version = "0.0.8";
|
2014-01-31 05:44:42 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-09-19 18:08:35 +01:00
|
|
|
url = "http://forge.ocamlcore.org/frs/download.php/1544/${name}.tar.gz";
|
|
|
|
sha256 = "1w0w8lfyymvk300dv13gvhrddpcyknvyp4g2yvq2vaw7khkhjs9g";
|
2014-01-31 05:44:42 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2014-01-31 05:44:42 +00:00
|
|
|
|
|
|
|
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
|
|
|
buildPhase = "ocaml setup.ml -build";
|
|
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
|
2017-02-26 20:18:02 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
2014-01-31 05:44:42 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://forge.ocamlcore.org/projects/ocamlmod/ocamlmod;
|
|
|
|
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
|
|
|
maintainers = with stdenv.lib.maintainers; [
|
|
|
|
z77z
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|