diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/trace/tef.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/trace/tef.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/trace/tef.nix b/nixpkgs/pkgs/development/ocaml-modules/trace/tef.nix index c1a6f9251554..eeeda78f580d 100644 --- a/nixpkgs/pkgs/development/ocaml-modules/trace/tef.nix +++ b/nixpkgs/pkgs/development/ocaml-modules/trace/tef.nix @@ -4,6 +4,15 @@ 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; |