ocamlPackages.uring: 0.9 → 2.7.0 (#446782)

Changed files
+19 -4
pkgs
development
ocaml-modules
uring
+19 -4
pkgs/development/ocaml-modules/uring/default.nix
···
{
lib,
+
ocaml,
+
version ? if lib.versionAtLeast ocaml.version "5.1" then "2.7.0" else "0.9",
buildDunePackage,
cstruct,
dune-configurator,
···
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 = [