summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/base64
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-04-14 06:56:28 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2020-04-21 08:47:40 +0200
commit36632263e0a29e1df59187a72680622c4228e92c (patch)
tree890295cf07d3ab6f26c45826f1bfcdfdc272504e /pkgs/development/ocaml-modules/base64
parentf2788cdf11ca733f0faf986137de90a66acd6aeb (diff)
ocamlPackages.base64: fix tests for alcotest ≥ 1.0
Diffstat (limited to 'pkgs/development/ocaml-modules/base64')
-rw-r--r--pkgs/development/ocaml-modules/base64/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/ocaml-modules/base64/default.nix b/pkgs/development/ocaml-modules/base64/default.nix
index 2f53d74c9eb2..b2e3e0c5e74d 100644
--- a/pkgs/development/ocaml-modules/base64/default.nix
+++ b/pkgs/development/ocaml-modules/base64/default.nix
@@ -1,8 +1,8 @@
-{ lib, fetchzip, buildDunePackage, alcotest, bos }:
+{ lib, fetchpatch, fetchzip, buildDunePackage, alcotest, bos }:
let version = "3.2.0"; in
-buildDunePackage {
+buildDunePackage rec {
pname = "base64";
inherit version;
@@ -13,9 +13,16 @@ buildDunePackage {
minimumOCamlVersion = "4.03";
- buildInputs = [ alcotest bos ];
+ buildInputs = [ bos ];
+
+ # Fix test-suite for alcotest ≥ 1.0
+ patches = [(fetchpatch {
+ url = "https://github.com/mirage/ocaml-base64/commit/8d334d02aa52875158fae3e2fb8fe0a5596598d0.patch";
+ sha256 = "0lvqdp98qavpzis1wgwh3ijajq79hq47898gsrk37fpyjbrdzf5q";
+ })];
doCheck = true;
+ checkInputs = [ alcotest ];
meta = {
homepage = "https://github.com/mirage/ocaml-base64";