2014-09-22 22:24:28 +00:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, camlp4}:
|
2014-09-19 18:09:37 +00:00
|
|
|
|
2017-06-26 03:02:42 +00:00
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "3.12"
|
|
|
|
|| stdenv.lib.versionAtLeast ocaml.version "4.03"
|
|
|
|
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 {
|
|
|
|
url = https://ocaml.janestreet.com/ocaml-core/108.08.00/individual/type_conv-108.08.00.tar.gz;
|
|
|
|
sha256 = "08ysikwwp69zvc147lzzg79nwlrzrk738rj0ggcfadi8h5il42sl";
|
|
|
|
};
|
|
|
|
|
2014-09-22 22:24:28 +00:00
|
|
|
buildInputs = [ocaml findlib camlp4];
|
2014-09-19 18:09:37 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://ocaml.janestreet.com/;
|
|
|
|
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 [];
|
2014-09-19 18:09:37 +00:00
|
|
|
maintainers = with maintainers; [ z77z ];
|
|
|
|
};
|
|
|
|
}
|