2014-09-23 00:24:28 +02:00
|
|
|
{stdenv, fetchurl, ocaml, findlib, camlp4}:
|
2012-01-16 11:20:13 +01:00
|
|
|
|
2017-06-26 05:02:42 +02:00
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4.00"
|
|
|
|
|| stdenv.lib.versionAtLeast ocaml.version "4.03"
|
|
|
|
then throw "type_conv-109.60.01 is not available for OCaml ${ocaml.version}" else
|
2014-09-19 20:09:37 +02:00
|
|
|
|
2012-01-16 11:20:13 +01:00
|
|
|
stdenv.mkDerivation {
|
2015-09-06 21:15:10 +02:00
|
|
|
name = "ocaml-type_conv-109.60.01";
|
2012-01-16 11:20:13 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-29 22:09:29 +01:00
|
|
|
url = https://github.com/janestreet/type_conv/archive/109.60.01.tar.gz;
|
|
|
|
sha256 = "0lpxri68glgq1z2pp02rp45cb909xywbff8d4idljrf6fzzil2zx";
|
2012-01-16 11:20:13 +01:00
|
|
|
};
|
|
|
|
|
2014-09-23 00:24:28 +02:00
|
|
|
buildInputs = [ocaml findlib camlp4];
|
2012-01-16 11:20:13 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://forge.ocamlcore.org/projects/type-conv/;
|
2012-01-16 11:20:13 +01:00
|
|
|
description = "Support library for OCaml preprocessor type conversions";
|
2014-01-29 22:09:29 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-01-29 22:09:29 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ z77z ];
|
2012-01-16 11:20:13 +01:00
|
|
|
};
|
|
|
|
}
|