3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/ocaml/ocamlformat/default.nix

32 lines
692 B
Nix
Raw Normal View History

2019-12-09 10:14:40 +00:00
{ lib, fetchurl, ocamlPackages }:
2018-10-22 11:03:33 +01:00
with ocamlPackages; buildDunePackage rec {
2018-10-22 11:03:33 +01:00
pname = "ocamlformat";
2020-01-31 09:48:37 +00:00
version = "0.13.0";
2019-09-24 06:53:06 +01:00
minimumOCamlVersion = "4.06";
2018-10-22 11:03:33 +01:00
2019-12-09 10:14:40 +00:00
src = fetchurl {
2020-02-10 00:34:57 +00:00
url = "https://github.com/ocaml-ppx/ocamlformat/releases/download/${version}/ocamlformat-${version}-2.tbz";
sha256 = "0ki2flqi3xkhw9mfridivb6laxm7gml8rj9qz42vqmy9yx76jjxq";
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 = {
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";
2019-09-24 06:53:06 +01:00
maintainers = [ lib.maintainers.Zimmi48 ];
license = lib.licenses.mit;
2018-10-22 11:03:33 +01:00
};
}