2021-01-11 07:54:33 +00:00
|
|
|
{lib, stdenv, fetchurl, ocaml, findlib, camlp4}:
|
2014-09-19 18:09:37 +00:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if !lib.versionAtLeast ocaml.version "3.12"
|
|
|
|
|| lib.versionAtLeast ocaml.version "4.03"
|
2017-06-26 03:02:42 +00:00
|
|
|
then throw "type_conv-108.08.00 is not available for OCaml ${ocaml.version}" else
|
2014-09-19 18:09:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-09-06 19:15:10 +00:00
|
|
|
name = "ocaml-type_conv-108.08.00";
|
2014-09-19 18:09:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://ocaml.janestreet.com/ocaml-core/108.08.00/individual/type_conv-108.08.00.tar.gz";
|
2014-09-19 18:09:37 +00:00
|
|
|
sha256 = "08ysikwwp69zvc147lzzg79nwlrzrk738rj0ggcfadi8h5il42sl";
|
|
|
|
};
|
|
|
|
|
2014-09-22 22:24:28 +00:00
|
|
|
buildInputs = [ocaml findlib camlp4];
|
2014-09-19 18:09:37 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://ocaml.janestreet.com/";
|
2014-09-19 18:09:37 +00:00
|
|
|
description = "Support library for OCaml preprocessor type conversions";
|
2014-11-06 19:40:20 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
branch = "108";
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2019-10-07 14:44:58 +00:00
|
|
|
maintainers = with maintainers; [ maggesi ];
|
2014-09-19 18:09:37 +00:00
|
|
|
};
|
|
|
|
}
|