summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/magic-trace/default.nix
blob: 46d761367c458f883136a7333f04de4d538e5339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
  lib,
  fetchFromGitHub,
  buildDunePackage,
  ocaml-crunch,
  angstrom,
  async,
  camlzip,
  cohttp,
  cohttp_static_handler ? null,
  core,
  core_unix ? null,
  fzf,
  owee,
  ppx_jane,
  re,
  shell ? null,
  zstandard ? null,
}:

buildDunePackage (finalAttrs: {
  pname = "magic-trace";
  version = "1.2.4";

  minimalOCamlVersion = "4.12";

  src = fetchFromGitHub {
    owner = "janestreet";
    repo = "magic-trace";
    tag = "v${finalAttrs.version}";
    hash = "sha256-LkhnlOd5rI8cbOYbVqrkRJ2qTcRn3Zzl6GjQEdjBjVA=";
  };

  nativeBuildInputs = [
    ocaml-crunch
  ];

  buildInputs = [
    angstrom
    async
    camlzip
    cohttp
    cohttp_static_handler
    core
    core_unix
    fzf
    owee
    ppx_jane
    re
    shell
    zstandard
  ];

  meta = {
    description = "Collects and displays high-resolution traces of what a process is doing";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.alizter ];
    homepage = "https://github.com/janestreet/magic-trace";
    platforms = [ "x86_64-linux" ];
    mainProgram = "magic-trace";
  };
})