diff --git a/pkgs/development/ocaml-modules/magic-trace/default.nix b/pkgs/development/ocaml-modules/magic-trace/default.nix new file mode 100644 index 000000000000..1f1417f67275 --- /dev/null +++ b/pkgs/development/ocaml-modules/magic-trace/default.nix @@ -0,0 +1,27 @@ +{ lib, fetchFromGitHub, buildDunePackage, async, cohttp_static_handler +, core_unix, owee, ppx_jane, shell }: + +buildDunePackage rec { + pname = "magic-trace"; + version = "1.1.0"; + + minimalOCamlVersion = "4.12"; + duneVersion = "3"; + + src = fetchFromGitHub { + owner = "janestreet"; + repo = "magic-trace"; + rev = "v${version}"; + sha256 = "sha256-615AOkrbQI6vRosA5Kz3Epipe9f9+Gs9+g3bVl5gzBY="; + }; + + buildInputs = [ async cohttp_static_handler core_unix owee ppx_jane shell ]; + + 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"; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index e6da9aca10cb..3f8667af9ae7 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -895,6 +895,7 @@ let magic-mime = callPackage ../development/ocaml-modules/magic-mime { }; + magic-trace = callPackage ../development/ocaml-modules/magic-trace { }; mariadb = callPackage ../development/ocaml-modules/mariadb { inherit (pkgs) mariadb;