about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/type_conv/109.60.01.nix
blob: cc77a731f020ca13dcb8b44f52b2722c92d5fda0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, lib, fetchurl, ocaml, findlib, camlp4 }:

if !lib.versionAtLeast ocaml.version "4.00"
  || lib.versionAtLeast ocaml.version "4.03"
then throw "type_conv-109.60.01 is not available for OCaml ${ocaml.version}" else

stdenv.mkDerivation rec {
  pname = "ocaml-type_conv";
  version = "109.60.01";

  src = fetchurl {
    url = "https://github.com/janestreet/type_conv/archive/${version}.tar.gz";
    sha256 = "0lpxri68glgq1z2pp02rp45cb909xywbff8d4idljrf6fzzil2zx";
  };

  buildInputs = [ ocaml findlib camlp4 ];

  createFindlibDestdir = true;

  meta = {
    homepage = "http://forge.ocamlcore.org/projects/type-conv/";
    description = "Support library for OCaml preprocessor type conversions";
    license = lib.licenses.lgpl21;
    platforms = ocaml.meta.platforms or [ ];
    maintainers = with lib.maintainers; [ maggesi ];
  };
}