about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/stdio/default.nix
blob: 8738233002222fa7790409abfd502dee982a1499 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl, ocaml, jbuilder, findlib, base }:

stdenv.mkDerivation {
  name = "ocaml${ocaml.version}-stdio-0.9.0";

  src = fetchurl {
    url = http://ocaml.janestreet.com/ocaml-core/v0.9/files/stdio-v0.9.0.tar.gz;
    sha256 = "008b5y03223107gfv8qawdfyjvf5g97l472i5p5v8mp512wr7kj5";
  };

  buildInputs = [ ocaml jbuilder findlib ];
  propagatedBuildInputs = [ base ];

  inherit (jbuilder) installPhase;

  meta = {
    license = stdenv.lib.licenses.asl20;
    description = "Standard IO library for OCaml";
    homepage = https://github.com/janestreet/stdio;
    inherit (ocaml.meta) platforms;
  };
}