nixpkgs/pkgs/development/tools/ocaml/ocamlformat/default.nix

36 lines
729 B
Nix
Raw Normal View History

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