ocamlPackages.{trace,trace-tef}: init at 0.2

This commit is contained in:
Vincent Laporte 2023-07-28 07:29:16 +02:00 committed by Vincent Laporte
parent 14651559b5
commit 491a3d732f
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{ lib, fetchurl, buildDunePackage }:
buildDunePackage rec {
pname = "trace";
version = "0.2";
minimalOCamlVersion = "4.05";
src = fetchurl {
url = "https://github.com/c-cube/trace/releases/download/v${version}/trace-${version}.tbz";
hash = "sha256-iScnZxjgzDqZFxbDDXB0K4TkdDJDcrMC03sK/ltbqJQ=";
};
meta = {
description = "Common interface for tracing/instrumentation libraries in OCaml";
license = lib.licenses.mit;
homepage = "https://c-cube.github.io/trace/";
maintainers = [ lib.maintainers.vbgl ];
};
}

View file

@ -0,0 +1,15 @@
{ buildDunePackage, trace, mtime }:
buildDunePackage {
pname = "trace-tef";
inherit (trace) src version;
propagatedBuildInputs = [ mtime trace ];
doCheck = true;
meta = trace.meta // {
description = "A simple backend for trace, emitting Catapult JSON into a file";
};
}

View file

@ -1643,6 +1643,10 @@ let
inherit (pkgs.python3Packages) torch;
};
trace = callPackage ../development/ocaml-modules/trace { };
trace-tef = callPackage ../development/ocaml-modules/trace/tef.nix { };
trie = callPackage ../development/ocaml-modules/trie { };
tsdl = callPackage ../development/ocaml-modules/tsdl {