Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, buildDunePackage, async, cohttp_static_handler ? null
2, core_unix ? null, owee, ppx_jane, shell ? null }:
3
4buildDunePackage rec {
5 pname = "magic-trace";
6 version = "1.1.0";
7
8 minimalOCamlVersion = "4.12";
9 duneVersion = "3";
10
11 src = fetchFromGitHub {
12 owner = "janestreet";
13 repo = "magic-trace";
14 rev = "v${version}";
15 sha256 = "sha256-615AOkrbQI6vRosA5Kz3Epipe9f9+Gs9+g3bVl5gzBY=";
16 };
17
18 buildInputs = [ async cohttp_static_handler core_unix owee ppx_jane shell ];
19
20 meta = with lib; {
21 description =
22 "Collects and displays high-resolution traces of what a process is doing";
23 license = licenses.mit;
24 maintainers = [ maintainers.alizter ];
25 homepage = "https://github.com/janestreet/magic-trace";
26 };
27}