2015-09-06 20:15:10 +01:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, ocaml_data_notation, type_conv, camlp4,
|
2014-01-31 05:44:42 +00:00
|
|
|
ocamlmod, ocamlify, ounit, expect}:
|
|
|
|
|
2016-09-26 22:30:06 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.4.7";
|
|
|
|
name = "ocaml-oasis-${version}";
|
2014-01-31 05:44:42 +00:00
|
|
|
|
2016-09-26 22:30:06 +01:00
|
|
|
# You must manually update the url, not just the version. OCamlforge keys off
|
|
|
|
# the number after download.php, not the filename.
|
2014-01-31 05:44:42 +00:00
|
|
|
src = fetchurl {
|
2016-09-26 22:30:06 +01:00
|
|
|
url = "http://forge.ocamlcore.org/frs/download.php/1635/oasis-${version}.tar.gz";
|
2016-09-14 07:05:53 +01:00
|
|
|
sha256 = "13crvqiy0hhlnm4qfyxq2jjvs11ldxf15c4g9q91k1x3wj04pg2l";
|
2014-01-31 05:44:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[
|
2015-09-06 20:15:10 +01:00
|
|
|
ocaml findlib type_conv ocamlmod ocamlify ounit camlp4
|
2014-01-31 05:44:42 +00:00
|
|
|
];
|
|
|
|
|
2015-09-06 20:15:10 +01:00
|
|
|
propagatedBuildInputs = [ ocaml_data_notation ];
|
2014-06-07 21:38:47 +01:00
|
|
|
|
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";
|
|
|
|
|
2014-10-10 16:02:50 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-01-31 05:44:42 +00:00
|
|
|
homepage = http://oasis.forge.ocamlcore.org/;
|
|
|
|
description = "Configure, build and install system for OCaml projects";
|
2014-10-10 16:02:50 +01:00
|
|
|
license = licenses.lgpl21;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-10 16:02:50 +01:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
vbgl z77z
|
2014-01-31 05:44:42 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|