forked from mirrors/nixpkgs
36 lines
729 B
Nix
36 lines
729 B
Nix
{ lib, fetchurl, ocamlPackages }:
|
|
|
|
with ocamlPackages; buildDunePackage rec {
|
|
pname = "ocamlformat";
|
|
version = "0.14.2";
|
|
|
|
minimumOCamlVersion = "4.06";
|
|
|
|
useDune2 = true;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ocaml-ppx/ocamlformat/releases/download/${version}/ocamlformat-${version}.tbz";
|
|
sha256 = "16phz1sg9b070p6fm8d42j0piizg05vghdjmw8aj7xm82b1pm7sz";
|
|
};
|
|
|
|
buildInputs = [
|
|
cmdliner
|
|
fpath
|
|
ocaml-migrate-parsetree
|
|
odoc
|
|
re
|
|
stdio
|
|
uuseg
|
|
uutf
|
|
fix
|
|
menhir
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ocaml-ppx/ocamlformat";
|
|
description = "Auto-formatter for OCaml code";
|
|
maintainers = [ lib.maintainers.Zimmi48 ];
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|