From 8604575f6bfa82cbec3ce6a1450d8808da2b6d31 Mon Sep 17 00:00:00 2001 From: Alexandre Esteves <2335822+alexfmpe@users.noreply.github.com> Date: Sun, 26 Jan 2020 01:10:17 +0000 Subject: [PATCH] ocamlPackages.dum: init at 1.0.1 (#74817) * ocamlPackages.dum: init at 1.0.1 * Cleanup --- .../development/ocaml-modules/dum/default.nix | 28 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/ocaml-modules/dum/default.nix 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 { };