Skip to content

Commit

Permalink
ocamlPackages.mem_usage: init at 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Jan 20, 2025
1 parent 8e7b107 commit be35633
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/development/ocaml-modules/mem_usage/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit be35633

Please sign in to comment.