Merge pull request #279671 from vbgl/ocaml-trace-0.5

ocamlPackages.trace: 0.3 → 0.5
This commit is contained in:
Peder Bergebakken Sundt 2024-01-11 20:01:00 +01:00 committed by GitHub
commit 6cd98a7a75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View file

@ -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 = {

View file

@ -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;