2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, ocamlmod, ocamlify }:
|
2014-01-31 05:44:42 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2017-07-11 02:40:07 +01:00
|
|
|
version = "0.4.10";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ocaml-oasis";
|
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 {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://forge.ocamlcore.org/frs/download.php/1694/oasis-0.4.10.tar.gz";
|
2017-07-11 02:40:07 +01:00
|
|
|
sha256 = "13ah03pbcvrjv5lmx971hvkm9rvbvimska5wmjfvgvd20ca0gn8w";
|
2014-01-31 05:44:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[
|
2017-10-08 20:14:49 +01:00
|
|
|
ocaml findlib ocamlbuild ocamlmod ocamlify
|
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";
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://oasis.forge.ocamlcore.org/";
|
2014-01-31 05:44:42 +00:00
|
|
|
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; [
|
2019-10-07 15:44:58 +01:00
|
|
|
vbgl maggesi
|
2014-01-31 05:44:42 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|