summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/janestreet/ppx_optcomp-113_33_01.nix
blob: 05e7f40eb6869610ac8d1d7031366dac219554ac (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
28
29
30
31
32
33
34
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, opam, topkg, oasis
, ppx_core, ppx_tools
}:

let
  param = {
    "4.03" = {
      version = "113.33.00+4.03";
      sha256 = "1fkz6n40l4ck8bcr548d2yp08zc9fjv42zldlh0cj3ammhiz3gap";
    };
    "4.04" = {
      version = "113.33.01+4.03";
      sha256 = "1caw5dfgh5rw8mcgar0hdn485j1rqlnkbfb8wd0wdl5zhkg8jk3d";
    };
  }."${ocaml.meta.branch}";
in

stdenv.mkDerivation {
  name = "ocaml${ocaml.version}-ppx_optcomp-${param.version}";
  src = fetchzip {
    url = "http://github.com/janestreet/ppx_optcomp/archive/${param.version}.tar.gz";
    inherit (param) sha256;
  };

  buildInputs = [ ocaml findlib ocamlbuild opam oasis ppx_tools ];
  propagatedBuildInputs = [ ppx_core ];

  inherit (topkg) installPhase;

  meta = {
    license = stdenv.lib.licenses.asl20;
    inherit (ocaml.meta) platforms;
  };
}