ocamlPackages.uring: 0.9 → 2.7.0

This commit is contained in:
·𐑑𐑴𐑕𐑑𐑩𐑤
2025-09-28 04:56:33 +07:00
parent 4fdd0a0084
commit d6d54a41a0

View File

@@ -1,5 +1,7 @@
{
lib,
ocaml,
version ? if lib.versionAtLeast ocaml.version "5.1" then "2.7.0" else "0.9",
buildDunePackage,
cstruct,
dune-configurator,
@@ -9,15 +11,28 @@
mdx,
}:
let
param =
{
"0.9" = {
minimalOCamlVersion = "4.12";
hash = "sha256-eXWIxfL9UsKKf4sanBjKfr6Od4fPDctVnkU+wjIXW0M=";
};
"2.7.0" = {
minimalOCamlVersion = "5.1.0";
hash = "sha256-mePi6/TXtxgtLYLyHRAdnRcgeldCVgUaPY+MZXSzC6U=";
};
}
.${version};
in
buildDunePackage rec {
pname = "uring";
version = "0.9";
minimalOCamlVersion = "4.12";
inherit version;
inherit (param) minimalOCamlVersion;
src = fetchurl {
url = "https://github.com/ocaml-multicore/ocaml-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
hash = "sha256-eXWIxfL9UsKKf4sanBjKfr6Od4fPDctVnkU+wjIXW0M=";
inherit (param) hash;
};
propagatedBuildInputs = [