about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/trace/tef.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/trace/tef.nix')
-rw-r--r--pkgs/development/ocaml-modules/trace/tef.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/trace/tef.nix b/pkgs/development/ocaml-modules/trace/tef.nix
index c1a6f9251554e..eeeda78f580d0 100644
--- a/pkgs/development/ocaml-modules/trace/tef.nix
+++ b/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;