Skip to content

Commit

Permalink
ocamlPackages.eio: 0.12 → 0.13 (NixOS#265029)
Browse files Browse the repository at this point in the history
  • Loading branch information
toastal authored and natsukium committed Nov 4, 2023
1 parent a52789e commit 3b3dca5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
22 changes: 17 additions & 5 deletions pkgs/development/ocaml-modules/eio/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ lib
, ocaml
, version ? if lib.versionAtLeast ocaml.version "5.1" then "0.13" else "0.12"
, buildDunePackage
, bigstringaf
, cstruct
Expand All @@ -16,16 +18,26 @@
, mdx
}:

let
param = {
"0.12" = {
minimalOCamlVersion = "5.0";
hash = "sha256-2EhHzoX/t4ZBSWrSS+PGq1zCxohc7a1q4lfsrFnZJqA=";
};
"0.13" = {
minimalOCamlVersion = "5.1";
hash = "sha256-glN+4cWxgp/eggdhSk459WC9WCMyhBKQ7V73ZpHzr3A=";
};
}."${version}";
in
buildDunePackage rec {
pname = "eio";
version = "0.12";

minimalOCamlVersion = "5.0";
duneVersion = "3";
inherit version;
inherit (param) minimalOCamlVersion;

src = fetchurl {
url = "https://github.com/ocaml-multicore/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
sha256 = "2EhHzoX/t4ZBSWrSS+PGq1zCxohc7a1q4lfsrFnZJqA=";
inherit (param) hash;
};

propagatedBuildInputs = [
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/ocaml-modules/eio/linux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ buildDunePackage {
inherit (eio) meta src version;

minimalOCamlVersion = "5.0";
duneVersion = "3";

dontStrip = true;

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/ocaml-modules/eio/main.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ buildDunePackage {
inherit (eio) meta src version;

minimalOCamlVersion = "5.0";
duneVersion = "3";

dontStrip = true;

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/ocaml-modules/eio/posix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ buildDunePackage {
inherit (eio) meta src version;

minimalOCamlVersion = "5.0";
duneVersion = "3";

dontStrip = true;

Expand Down

0 comments on commit 3b3dca5

Please sign in to comment.