2023-05-24 13:37:59 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, cmdliner, findlib }:
|
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";
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
duneVersion = "3";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ cmdliner ];
|
2023-05-24 13:37:59 +00:00
|
|
|
propagatedBuildInputs = [ findlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://www.typerex.org/ocp-indent.html";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Customizable tool to indent OCaml code";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ocp-indent";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|