2017-03-26 15:07:20 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, cmdliner, result, uchar }:
|
2016-10-25 18:19:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-03-26 15:07:20 +01:00
|
|
|
name = "ocaml${ocaml.version}-fmt-0.8.2";
|
2016-10-25 18:19:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-03-26 15:07:20 +01:00
|
|
|
url = http://erratique.ch/software/fmt/releases/fmt-0.8.2.tbz;
|
|
|
|
sha256 = "020qz74cm65bzrywf6kylm93gr5x1ayl6hfmxaql995f6whb388i";
|
2016-10-25 18:19:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackCmd = "tar xjf $src";
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild opam topkg cmdliner ];
|
2017-03-26 15:07:20 +01:00
|
|
|
propagatedBuildInputs = [ result uchar ];
|
2016-10-25 18:19:35 +01:00
|
|
|
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://erratique.ch/software/fmt;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
description = "OCaml Format pretty-printer combinators";
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|