depot/third_party/nixpkgs/pkgs/development/ocaml-modules/trace/tef.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

24 lines
542 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 = "A simple backend for trace, emitting Catapult JSON into a file";
};
}