2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, type_conv, camlp4 }:
|
2014-12-09 19:06:22 +01:00
|
|
|
|
2021-01-11 13:49:15 +01:00
|
|
|
assert lib.versionOlder "4.00" (lib.getVersion ocaml);
|
2014-12-09 19:06:22 +01:00
|
|
|
|
2021-01-11 13:49:15 +01:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-08-21 15:20:43 +02:00
|
|
|
then throw "fieldslib-109.20.03 is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2014-12-09 19:06:22 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-fieldslib-109.20.03";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://ocaml.janestreet.com/ocaml-core/109.20.00/individual/fieldslib-109.20.03.tar.gz";
|
2014-12-09 19:06:22 +01:00
|
|
|
sha256 = "1dkzk0wf26rhvji80dz1r56dp6x9zqrnp87wldd4pj56jli94vir";
|
|
|
|
};
|
|
|
|
|
2016-11-08 04:38:26 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2015-09-06 21:15:10 +02:00
|
|
|
propagatedBuildInputs = [ type_conv camlp4 ];
|
2014-12-09 19:06:22 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://ocaml.janestreet.com/";
|
2014-12-09 19:06:22 +01:00
|
|
|
description = "OCaml syntax extension to define first class values representing record fields, to get and set record fields, iterate and fold over all fields of a record and create new record values";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-12-09 19:06:22 +01:00
|
|
|
};
|
|
|
|
}
|