2019-12-09 10:14:40 +00:00
|
|
|
{ lib, fetchurl, ocamlPackages }:
|
2018-10-22 11:03:33 +01:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
with ocamlPackages; buildDunePackage rec {
|
2018-10-22 11:03:33 +01:00
|
|
|
pname = "ocamlformat";
|
2020-08-07 05:20:00 +01:00
|
|
|
version = "0.15.0";
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2019-09-24 06:53:06 +01:00
|
|
|
minimumOCamlVersion = "4.06";
|
2018-10-22 11:03:33 +01:00
|
|
|
|
2020-04-03 10:20:00 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
2019-12-09 10:14:40 +00:00
|
|
|
src = fetchurl {
|
2020-04-03 10:20:00 +01:00
|
|
|
url = "https://github.com/ocaml-ppx/ocamlformat/releases/download/${version}/ocamlformat-${version}.tbz";
|
2020-08-07 05:20:00 +01:00
|
|
|
sha256 = "0190vz59n6ma9ca1m3syl3mc8i1smj1m3d8x1jp21f710y4llfr6";
|
2018-10-22 11:03:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cmdliner
|
|
|
|
fpath
|
|
|
|
ocaml-migrate-parsetree
|
2019-09-24 06:53:06 +01:00
|
|
|
odoc
|
|
|
|
re
|
2018-10-22 11:03:33 +01:00
|
|
|
stdio
|
2019-09-24 06:53:06 +01:00
|
|
|
uuseg
|
|
|
|
uutf
|
2020-04-03 10:20:00 +01:00
|
|
|
fix
|
|
|
|
menhir
|
2018-10-22 11:03:33 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2019-12-09 10:14:40 +00:00
|
|
|
homepage = "https://github.com/ocaml-ppx/ocamlformat";
|
2018-10-22 11:03:33 +01:00
|
|
|
description = "Auto-formatter for OCaml code";
|
2020-08-07 05:20:00 +01:00
|
|
|
maintainers = [ lib.maintainers.Zimmi48 lib.maintainers.marsam ];
|
2019-09-24 06:53:06 +01:00
|
|
|
license = lib.licenses.mit;
|
2018-10-22 11:03:33 +01:00
|
|
|
};
|
|
|
|
}
|