mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
8751d1ea1a
The actual name of the package is type_conv (https://github.com/janestreet/type_conv). Having it named ocaml_typeconv adds a verbosity that isn't required and actually makes the package harder to find.
26 lines
892 B
Nix
26 lines
892 B
Nix
{ stdenv, fetchurl, ocaml, findlib, type_conv, camlp4 }:
|
|
|
|
assert stdenv.lib.versionOlder "4.00" (stdenv.lib.getVersion ocaml);
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ocaml-fieldslib-109.20.03";
|
|
|
|
src = fetchurl {
|
|
url = https://ocaml.janestreet.com/ocaml-core/109.20.00/individual/fieldslib-109.20.03.tar.gz;
|
|
sha256 = "1dkzk0wf26rhvji80dz1r56dp6x9zqrnp87wldd4pj56jli94vir";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
propagatedBuildInputs = [ type_conv camlp4 ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://ocaml.janestreet.com/;
|
|
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 ];
|
|
platforms = ocaml.meta.platforms;
|
|
};
|
|
}
|