2024-02-26 06:37:58 +01: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-23 17:48:54 +01:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "magic-trace";
|
2024-02-26 06:37:58 +01:00
|
|
|
version = "1.2.1";
|
2023-03-23 17:48:54 +01:00
|
|
|
|
|
|
|
minimalOCamlVersion = "4.12";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janestreet";
|
|
|
|
repo = "magic-trace";
|
|
|
|
rev = "v${version}";
|
2024-02-26 06:37:58 +01:00
|
|
|
hash = "sha256-/9TDjCG/06mhGyqbjAdUmk6fcaq9fNDqVSw51w5EEy4=";
|
2023-03-23 17:48:54 +01:00
|
|
|
};
|
|
|
|
|
2024-02-26 06:37:58 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
ocaml-crunch
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
angstrom
|
|
|
|
async
|
|
|
|
cohttp
|
|
|
|
cohttp_static_handler
|
|
|
|
core
|
|
|
|
core_unix
|
|
|
|
fzf
|
|
|
|
owee
|
|
|
|
ppx_jane
|
|
|
|
re
|
|
|
|
shell
|
|
|
|
];
|
2023-03-23 17:48:54 +01: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";
|
|
|
|
};
|
|
|
|
}
|