2021-01-23 04:26:19 -08:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, ocamlmod, ocamlify }:
|
2014-01-30 21:44:42 -08:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2017-07-10 18:40:07 -07:00
|
|
|
version = "0.4.10";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "ocaml-oasis";
|
2014-01-30 21:44:42 -08:00
|
|
|
|
2016-09-26 14:30:06 -07:00
|
|
|
# You must manually update the url, not just the version. OCamlforge keys off
|
|
|
|
# the number after download.php, not the filename.
|
2014-01-30 21:44:42 -08:00
|
|
|
src = fetchurl {
|
2020-03-31 18:11:51 -07:00
|
|
|
url = "https://forge.ocamlcore.org/frs/download.php/1694/oasis-0.4.10.tar.gz";
|
2017-07-10 18:40:07 -07:00
|
|
|
sha256 = "13ah03pbcvrjv5lmx971hvkm9rvbvimska5wmjfvgvd20ca0gn8w";
|
2014-01-30 21:44:42 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[
|
2017-10-08 12:14:49 -07:00
|
|
|
ocaml findlib ocamlbuild ocamlmod ocamlify
|
2014-01-30 21:44:42 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
|
|
|
buildPhase = "ocaml setup.ml -build";
|
|
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
|
2021-01-23 04:26:19 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://oasis.forge.ocamlcore.org/";
|
2014-01-30 21:44:42 -08:00
|
|
|
description = "Configure, build and install system for OCaml projects";
|
2014-10-10 08:02:50 -07:00
|
|
|
license = licenses.lgpl21;
|
2015-12-24 09:49:07 -08:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-10 08:02:50 -07:00
|
|
|
maintainers = with maintainers; [
|
2019-10-07 07:44:58 -07:00
|
|
|
vbgl maggesi
|
2014-01-30 21:44:42 -08:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|