diff --git a/pkgs/development/ocaml-modules/dum/default.nix b/pkgs/development/ocaml-modules/dum/default.nix new file mode 100644 index 000000000000..37c00f6b31e9 --- /dev/null +++ b/pkgs/development/ocaml-modules/dum/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchFromGitHub, buildOcaml, ocaml +, easy-format +}: + +buildOcaml rec { + name = "dum"; + version = "1.0.1"; + + minimumOCamlVersion = "4.06"; + + src = fetchFromGitHub { + owner = "mjambon"; + repo = name; + rev = "v${version}"; + sha256 = "0yrxl97szjc0s2ghngs346x3y0xszx2chidgzxk93frjjpsr1mlr"; + }; + + buildInputs = [ easy-format ]; + + doCheck = true; + + meta = with lib; { + homepage = https://github.com/mjambon/dum; + description = "Inspect the runtime representation of arbitrary OCaml values"; + license = licenses.lgpl21Plus; + maintainers = [ maintainers.alexfmpe ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index a6adfc958152..f90068e00eb4 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -241,6 +241,8 @@ let duff = callPackage ../development/ocaml-modules/duff { }; + dum = callPackage ../development/ocaml-modules/dum { }; + dune = callPackage ../development/tools/ocaml/dune { }; dune_2 = callPackage ../development/tools/ocaml/dune/2.nix { };