567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
29 lines
639 B
Nix
29 lines
639 B
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
fetchFromGitLab,
|
|
ocaml,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "memprof-limits";
|
|
version = "0.2.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "gadmm";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-Pmuln5TihPoPZuehZlqPfERif6lf7O+0454kW9y3aKc=";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.12";
|
|
|
|
meta = {
|
|
homepage = "https://ocaml.org/p/memprof-limits/latest";
|
|
description = "Memory limits, allocation limits, and thread cancellation for OCaml";
|
|
license = lib.licenses.lgpl3;
|
|
maintainers = with lib.maintainers; [ alizter ];
|
|
broken = !(lib.versionOlder ocaml.version "5.0.0");
|
|
};
|
|
}
|