diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2021-10-25 21:41:32 -0300 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-10-26 22:42:22 +0200 |
commit | 153957a38918075dadfd9556a988c9769eb6b46b (patch) | |
tree | b491a09c54e9c79b9993478b1c2f9bb3acfa9218 | |
parent | c255780e698277a5bf06a622d5dab15ec28314ce (diff) |
ocamlPackages.prettym: init 0.0.2
-rw-r--r-- | pkgs/development/ocaml-modules/prettym/default.nix | 48 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 2 |
2 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/prettym/default.nix b/pkgs/development/ocaml-modules/prettym/default.nix new file mode 100644 index 0000000000000..1248a1b86b1cf --- /dev/null +++ b/pkgs/development/ocaml-modules/prettym/default.nix @@ -0,0 +1,48 @@ +{ alcotest +, base64 +, bigarray-compat +, bigarray-overlap +, bigstringaf +, buildDunePackage +, fetchzip +, fmt +, jsonm +, ke +, lib +, ptime +}: + +buildDunePackage rec { + pname = "prettym"; + version = "0.0.2"; + + src = fetchzip { + url = "https://github.com/dinosaure/prettym/releases/download/${version}/prettym-${version}.tbz"; + sha256 = "03x7jh62mvzc6x2d8xsy456qa6iphw72zm7jmqrakpmsy6zcf2lb"; + }; + + useDune2 = true; + + propagatedBuildInputs = [ + bigarray-compat + bigarray-overlap + bigstringaf + fmt + ke + ]; + + checkInputs = [ + ptime + alcotest + jsonm + base64 + ]; + doCheck = true; + + meta = { + description = "A simple bounded encoder to serialize human readable values and respect the 80-column constraint"; + license = lib.licenses.mit; + homepage = "https://github.com/dinosaure/prettym"; + maintainers = with lib.maintainers; [ superherointj ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index a1195a94a181c..65fe8a9935b39 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1178,6 +1178,8 @@ let ppx_yojson_conv_lib = callPackage ../development/ocaml-modules/ppx_yojson_conv_lib {}; + prettym = callPackage ../development/ocaml-modules/prettym { }; + printbox = callPackage ../development/ocaml-modules/printbox { }; process = callPackage ../development/ocaml-modules/process { }; |