2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildDunePackage
|
|
|
|
, ocaml-crunch
|
|
|
|
, angstrom
|
|
|
|
, async
|
|
|
|
, cohttp
|
|
|
|
, cohttp_static_handler ? null
|
|
|
|
, core
|
|
|
|
, core_unix ? null
|
|
|
|
, fzf
|
|
|
|
, owee
|
|
|
|
, ppx_jane
|
|
|
|
, re
|
|
|
|
, shell ? null
|
|
|
|
}:
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "magic-trace";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.2.3";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
minimalOCamlVersion = "4.12";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janestreet";
|
|
|
|
repo = "magic-trace";
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-cAoaAXZOeWNQh6emm17a9oCis8s4jJxPQMI/NfiUa7g=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
ocaml-crunch
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
angstrom
|
|
|
|
async
|
|
|
|
cohttp
|
|
|
|
cohttp_static_handler
|
|
|
|
core
|
|
|
|
core_unix
|
|
|
|
fzf
|
|
|
|
owee
|
|
|
|
ppx_jane
|
|
|
|
re
|
|
|
|
shell
|
|
|
|
];
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"Collects and displays high-resolution traces of what a process is doing";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.alizter ];
|
|
|
|
homepage = "https://github.com/janestreet/magic-trace";
|
|
|
|
};
|
|
|
|
}
|