diff --git a/pkgs/development/ocaml-modules/mem_usage/default.nix b/pkgs/development/ocaml-modules/mem_usage/default.nix new file mode 100644 index 0000000000000..d1614481b737f --- /dev/null +++ b/pkgs/development/ocaml-modules/mem_usage/default.nix @@ -0,0 +1,28 @@ +{ + lib, + fetchFromGitHub, + buildDunePackage, +}: + +buildDunePackage rec { + pname = "mem_usage"; + version = "0.1.2"; + + src = fetchFromGitHub { + owner = "savonet"; + repo = "ocaml-mem_usage"; + rev = "v${version}"; + hash = "sha256-bADBIIXe4Tg5HAd+s8/oieuwrZ/9/DA0RPHOWyib6p4="; + }; + + minimalOCamlVersion = "4.07"; + + doCheck = true; + + meta = { + license = lib.licenses.mit; + homepage = "https://www.liquidsoap.info/ocaml-mem_usage/"; + description = "Cross-platform memory usage information"; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index b22904c700803..6b07c01e45f1f 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1085,6 +1085,8 @@ let memtrace = callPackage ../development/ocaml-modules/memtrace { }; + mem_usage = callPackage ../development/ocaml-modules/mem_usage { }; + menhir = callPackage ../development/ocaml-modules/menhir { }; menhirLib = callPackage ../development/ocaml-modules/menhir/lib.nix { };