2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, type_conv, ounit, camlp4 }:
|
2014-01-30 21:44:42 -08:00
|
|
|
|
2021-01-11 04:49:15 -08:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-08-21 11:16:40 -07:00
|
|
|
then throw "ocaml-data-notation is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2014-01-30 21:44:42 -08:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-data-notation-0.0.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-03-31 18:11:51 -07:00
|
|
|
url = "https://forge.ocamlcore.org/frs/download.php/1310/ocaml-data-notation-0.0.11.tar.gz";
|
2014-01-30 21:44:42 -08:00
|
|
|
sha256 = "09a8zdyifpc2nl4hdvg9206142y31cq95ajgij011s1qcg3z93lj";
|
|
|
|
};
|
|
|
|
|
2016-10-07 23:44:25 -07:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild type_conv ounit camlp4 ];
|
2014-01-30 21:44:42 -08:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
configurePhase = "ocaml setup.ml -configure";
|
|
|
|
buildPhase = "ocaml setup.ml -build";
|
|
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2014-01-30 21:44:42 -08:00
|
|
|
description = "Store data using OCaml notation";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://forge.ocamlcore.org/projects/odn/";
|
2014-10-10 07:57:44 -07:00
|
|
|
license = licenses.lgpl21;
|
2015-12-24 09:49:07 -08:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-10 07:57:44 -07:00
|
|
|
maintainers = with maintainers; [
|
2019-10-07 07:44:58 -07:00
|
|
|
vbgl maggesi
|
2014-01-30 21:44:42 -08:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|