ocamlPackages.qcheck: 0.25 → 0.27

This commit is contained in:
Vincent Laporte
2025-11-04 18:45:33 +01:00
parent 6fdf87c097
commit 752d772b85
4 changed files with 24 additions and 16 deletions

View File

@@ -1,8 +1,8 @@
{ {
lib, lib,
fetchFromGitHub, fetchFromGitHub,
fetchpatch,
buildDunePackage, buildDunePackage,
ocaml,
dune-configurator, dune-configurator,
either, either,
seq, seq,
@@ -13,19 +13,25 @@
yojson, yojson,
}: }:
buildDunePackage rec { buildDunePackage (finalAttrs: {
version = "3.16"; version = "3.16";
pname = "containers"; pname = "containers";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "c-cube"; owner = "c-cube";
repo = "ocaml-containers"; repo = "ocaml-containers";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-WaHAZRLjaEJUba/I2r3Yof/iUqA3PFUuVbzm88izG1k="; hash = "sha256-WaHAZRLjaEJUba/I2r3Yof/iUqA3PFUuVbzm88izG1k=";
}; };
patches = [
# Compatibility with qcheck ≥ 0.26
(fetchpatch {
url = "https://github.com/c-cube/ocaml-containers/commit/3b49ad2a4e8cfe366d0588e1940d626f0e1b8a2d.patch";
hash = "sha256-LFe+LtpBBrf82SX57b4iQSvfd9tSXmnfhffjvjcfLpg=";
})
];
buildInputs = [ dune-configurator ]; buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ propagatedBuildInputs = [
either either
@@ -40,7 +46,7 @@ buildDunePackage rec {
yojson yojson
]; ];
doCheck = lib.versionAtLeast ocaml.version "4.08"; doCheck = true;
meta = { meta = {
homepage = "https://github.com/c-cube/ocaml-containers"; homepage = "https://github.com/c-cube/ocaml-containers";
@@ -57,4 +63,4 @@ buildDunePackage rec {
''; '';
license = lib.licenses.bsd2; license = lib.licenses.bsd2;
}; };
} })

View File

@@ -7,7 +7,7 @@
buildDunePackage { buildDunePackage {
pname = "qcheck-alcotest"; pname = "qcheck-alcotest";
inherit (qcheck-core) version src patches; inherit (qcheck-core) version src;
propagatedBuildInputs = [ propagatedBuildInputs = [
qcheck-core qcheck-core

View File

@@ -2,21 +2,23 @@
lib, lib,
buildDunePackage, buildDunePackage,
fetchFromGitHub, fetchFromGitHub,
alcotest,
}: }:
buildDunePackage rec { buildDunePackage (finalAttrs: {
pname = "qcheck-core"; pname = "qcheck-core";
version = "0.25"; version = "0.27";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "c-cube"; owner = "c-cube";
repo = "qcheck"; repo = "qcheck";
tag = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-Z89jJ21zm89wb9m5HthnbHdnE9iXLyaH9k8S+FAWkKQ="; hash = "sha256-UfBfFVSvDeVPUakj2GQCRy5G5IZBxrgdceYtj+VAYbg=";
}; };
doCheck = true;
checkInputs = [ alcotest ];
meta = { meta = {
description = "Core qcheck library"; description = "Core qcheck library";
homepage = "https://c-cube.github.io/qcheck/"; homepage = "https://c-cube.github.io/qcheck/";
@@ -24,4 +26,4 @@ buildDunePackage rec {
maintainers = [ lib.maintainers.vbgl ]; maintainers = [ lib.maintainers.vbgl ];
}; };
} })

View File

@@ -7,7 +7,7 @@
buildDunePackage { buildDunePackage {
pname = "qcheck-ounit"; pname = "qcheck-ounit";
inherit (qcheck-core) version src patches; inherit (qcheck-core) version src;
propagatedBuildInputs = [ propagatedBuildInputs = [
qcheck-core qcheck-core