2021-12-06 16:07:01 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, cmdliner }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.8.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ocp-indent";
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCamlPro";
|
|
|
|
repo = "ocp-indent";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-IyvURw/6R0eKrnahV1fqLV0iIeypykrmxDbliECgbLc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
|
|
|
buildInputs = [ cmdliner ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://www.typerex.org/ocp-indent.html";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A customizable tool to indent OCaml code";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|