From 6c568f32a5db7f18612e2c47b1763340de391702 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 27 Apr 2026 22:01:09 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.bos:=200.2.1=20=E2=86=92=200.3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/bos/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/bos/default.nix b/pkgs/development/ocaml-modules/bos/default.nix index 9cc68872f68a..491408108f5d 100644 --- a/pkgs/development/ocaml-modules/bos/default.nix +++ b/pkgs/development/ocaml-modules/bos/default.nix @@ -15,11 +15,16 @@ stdenv.mkDerivation (finalAttrs: { pname = "ocaml${ocaml.version}-bos"; - version = "0.2.1"; + version = if lib.versionAtLeast ocaml.version "4.14" then "0.3.0" else "0.2.1"; src = fetchurl { url = "https://erratique.ch/software/bos/releases/bos-${finalAttrs.version}.tbz"; - sha256 = "sha256-2NYueGsQ1pfgRXIFqO7eqifrzJDxhV8Y3xkMrC49jzc="; + hash = + { + "0.3.0" = "sha256-CJ82ntAJZ+kticxfzYSMVr2rXAJzfaTUg1UL9Wtaebw="; + "0.2.1" = "sha256-2NYueGsQ1pfgRXIFqO7eqifrzJDxhV8Y3xkMrC49jzc="; + } + ."${finalAttrs.version}"; }; nativeBuildInputs = [