ocamlPackages.trace: 0.3 → 0.5

This commit is contained in:
Vincent Laporte
2024-01-10 06:30:32 +01:00
parent 894359d5b5
commit 8bf17d903d
2 changed files with 12 additions and 3 deletions
@@ -2,13 +2,13 @@
buildDunePackage rec {
pname = "trace";
version = "0.3";
version = "0.5";
minimalOCamlVersion = "4.07";
src = fetchurl {
url = "https://github.com/c-cube/ocaml-trace/releases/download/${version}/trace-${version}.tbz";
hash = "sha256-Krq6qYO7tKJktTRjFrdmONPHfjrd81Ighsb9nmG9ZQU=";
url = "https://github.com/c-cube/ocaml-trace/releases/download/v${version}/trace-${version}.tbz";
hash = "sha256-l0NvWPGBd1WR+b50WXEYfptuCUjda8MlZ/o5YngRNIg=";
};
meta = {
@@ -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;