depot/third_party/nixpkgs/pkgs/development/ocaml-modules/trace/tef.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

24 lines
540 B
Nix

{ buildDunePackage, trace, mtime }:
buildDunePackage {
pname = "trace-tef";
inherit (trace) src version;
# This removes the dependency on the “atomic” package
# (not available in nixpkgs)
# Said package for OCaml ≥ 4.12 is empty
postPatch = ''
substituteInPlace src/tef/dune --replace 'atomic ' ""
'';
minimalOCamlVersion = "4.12";
propagatedBuildInputs = [ mtime trace ];
doCheck = true;
meta = trace.meta // {
description = "Simple backend for trace, emitting Catapult JSON into a file";
};
}