2019-09-24 06:53:06 +01:00
|
|
|
{ lib, fetchFromGitHub, 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";
|
2019-09-24 06:53:06 +01:00
|
|
|
version = "0.11.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
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml-ppx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-09-24 06:53:06 +01:00
|
|
|
sha256 = "0zvjn71jd4d3znnpgh0yphb2w8ggs457b6bl6cg1fmpdgxnds6yx";
|
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
|
2018-10-22 11:03:33 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2018-11-05 10:21:46 +00:00
|
|
|
inherit (src.meta) homepage;
|
2018-10-22 11:03:33 +01:00
|
|
|
description = "Auto-formatter for OCaml code";
|
2019-09-24 06:53:06 +01:00
|
|
|
maintainers = [ lib.maintainers.Zimmi48 ];
|
|
|
|
license = lib.licenses.mit;
|
2018-10-22 11:03:33 +01:00
|
|
|
};
|
|
|
|
}
|